Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor.

learn more… | top users | synonyms

4
votes
0answers
734 views

Is MacVim copy-to-clipboard supposed to be working on OS X Mavericks?

I've recently found out that I can no longer copy text out of MacVim and paste into other Mac apps. I used to be able to do this on Mountain Lion. I have the usual configurations set, namely: set ...
4
votes
0answers
199 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
3
votes
0answers
289 views

I can't get XFCE terminal to display VIM's colorschemes

That's what I have in my .bashrc if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then export TERM=xterm-256color fi In my .vimrc I have: set t_Co=256 echo $TERM prints xterm-256color tput ...
3
votes
0answers
134 views

Multiple linked sessions/instances of Vim and R with Vim-r-plugin

OSX 10.8. MacVim + Vim-r-plugin = Vim sends commands to R. Awesome! (Note I'm here asking about using MacVim and R.app (i.e. w/ Gui), not either in a terminal, since for this purpose I need both to ...
3
votes
0answers
712 views

vimperator j/k different scroll?

Like Vim, vimperator use j/k to scroll up and down. It's too slow by default so I need to remap them. nnoremap k 5k nnoremap j 5j What surprises me is that the lines that are scrolled are not ...
2
votes
0answers
80 views

Mouse click only works once with iterm2/tmux/mosh

I'm trying to set up iTerm2 + mosh + tmux to do my remote work. I can get everything to connect up, but for some reason, the mouse response is funky. If I split my tmux window so I have two panes and ...
2
votes
0answers
179 views

Autoformat for Perl in Vim

I got a piece of code about perl: if ($a==1){ &err_report("$a"); while($b!=1){ &err_ok(); } } And, I want to format it in vim. After using command: gg=G, the code ...
2
votes
0answers
128 views

LC_LOCALE settings interactions between Mac OSX and LINUX via SSH

I have been struggling with the following problem for years now. I have never been able to solve it, and I adopted several workarounds to keep being able to work. However now I can't stand it anymore, ...
2
votes
0answers
474 views

Using vim / vimperator key bindings in Midori

I have recently been struggling to find a good lightweight browser with Vim keybindings that will run on Debian Linux (wheezy). Dwb crashes all the time, Luakit is very old, Chromium has memory ...
2
votes
0answers
189 views

AWS EC2: Compile vim with clipboard support

I'm using a free EC2 instance using Amazon Linux AMI 2013.09.2. I want to install the latest version of vim and include clipboard support. I've seen a few guides, but none seem to be too current. ...
2
votes
0answers
111 views

KeyRemap4Macbook Vim-emulation alternative for Linux

There is a really nifty tool for Mac OS X called KeyRemap4Macbook which allows you, among other things, to use Vim keybindings to edit text in all text fields, with a distinction between normal and ...
2
votes
0answers
143 views

How can I tell what command is running on the remote end of an ssh connection?

Tl;dr - how do I find the name of the command (eg $BASH_COMMAND) running on the remote end of an ssh connection? ... My example setup is two tmux vertical panes, LH pane runs a local vim session ...
2
votes
0answers
94 views

Escape key strangely captured by javascript webshell

I am using GateOne as a WebShell on my VPS (only way to SSH to it through the proxy of the place...), it uses javascript to emulate a shell by capturing keystrokes. Everything works well, yet it ...
2
votes
0answers
68 views

vim typing error statistics - faster typing

I use VIM to write code. I am not an experienced (yet) in touch typing so I would like to put more stress in learning the keys that I mistype the most, apart of daily practice and TT drills. Is there ...
2
votes
0answers
127 views

Vim noremap still causes old mappings to be active

This is my .vimrc set mouse=a set ttymouse=xterm2 set number set smartindent set tabstop=4 set shiftwidth=4 set expandtab inoremap { {}<Left> inoremap {<CR> {<CR>}<Esc>O ...
2
votes
0answers
290 views

Vim cursorshape in OS X Terminal

I compiled vim 7.3 with +cursorshape and added the following to my ~/.vimrc: set t_SI = "\<Esc>]12;purple\x7" set t_EI = "\<Esc>]12;blue\x7" but Terminal.app still displays the same ...
1
vote
0answers
20 views

Issues with GVim and permissions on Win7

I've installed GVim on my win7 machine but I'm having trouble with saving any files. I keep getting the e212: Can't open file for writing If I try to just quit with :q!, I get e138: Can't write ...
1
vote
0answers
24 views

How can I find out the encoding of this corrupted Chinese text, which an online tool fixes correctly?

I have a text in Simplified Chinese, which, when read as UTF-8 begins with ´ÓºÜ¾ÃÒÔÇ°¿ªÊ¼, which the online tool from MandarinTools (first search result for Repair Corrupted Chinese Email) fixes to ...
1
vote
0answers
44 views

Can vim be used to view a growing file?

I often use vim's view for viewing files. Is there a way to use it for a growing file so that I can see the progress as it's happening? Something similar to tail -f or less +F I have two use ...
1
vote
0answers
33 views

Tmux 1.9a - variable #{pane_current_command} doesn't work as expected

I'm trying to get vim-tmux-navigator to work on my my Cygwin (Win7 x64) + Tmux 1.9a but it doesn't. The reason is the variable #{pane_current_command} always returns bash instead of vim, so the ...
1
vote
0answers
31 views

vim leaves a swapfile after crash with unknown owner

I am running Cygwin on windows. Several times now I've had a swap file left behind from vim after a crash, but it can't be recovered or deleted. "ls -l" shows this: -rw-r----- 1 Unknown+User ...
1
vote
0answers
120 views

VIM paste error: E353 nothing in register “”

I just installed Ubuntu 14.04 and got my vim set up and I have run into a slight caveat and I am not sure why it is happening. When I try to paste something with the middle mouse button, I get: ...
1
vote
0answers
128 views

How to use ctags and vim to jump to java methods

This used to work before I upgraded my Ubuntu system: ctags *.java vim -t fooFunc Which would then take me to e.g. Foo.fooFunc() But now, vim goes to the standard "tag not found" page. I now have ...
1
vote
0answers
44 views

Vi scrolling in Firefox/Chrome

Is there a way to rebind j and k to scroll pages in Firefox or Chrome, or addons available just for vi-like scrolling that aren't entire emulators like vimperator and vimium? All I want to do is ...
1
vote
0answers
222 views

NERDTree: open file in current window?

When I open a file in a NERDTree buffer that was created by opening a directory, when I press <CR>, it opens the selected file in the current window unless the file is open in another window, in ...
1
vote
0answers
77 views

Neither less or less -X clear screen on exit. (Trust me, I googled…)

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
1
vote
0answers
80 views

Full Keyboard Navigation PDF Reader With Highlight Function on Windows

After being addicted to VIM, I feel I hate to move my hand out the keyboard to reach the mouse. I'm currently using Acrobat, sometimes I want to highlight some text. I have to select the highlight ...
1
vote
0answers
54 views

Display soft hyphens in VIM

How do I get (G)VIM under Ubuntu 14.04 to display soft hyphens in a UTF-8 encoded text file? The encoding and the fileenconding settings are both set to utf-8, and characters like the German umlauts ...
1
vote
0answers
45 views

Vim with DBExt using FreeTDS on OS X

When I try to run a simple line of SQL like select 1 DBExt doesn't complain, the status bar says 'Executing SQL...` but nothing is showing up. Using homebrew I have installed unixODBC and FreeTDS ...
1
vote
0answers
90 views

Importing pygments' highlighting to vim

Usually, vim does very good job in highlighting, using the packaged syntax files. Unfortunately, it does bad job with MySQL. At first, I looked everywhere for a better MySQL vim syntax file, with no ...
1
vote
0answers
129 views

OSX Mavericks .zshrc cannot source

I am trying to source my zshrc. It sources fine when before I add this line: . ~/Dropbox/configs/aliases Then I get this: /Users/mkrell/.zshrc:.:13: too many open files: Dropbox/configs/aliases ...
1
vote
0answers
564 views

URxvt: vim and cursorColor [invisible cursor or invisible cursor text]

Introduction I've always used a light-background terminal and a dark-background editor (vim). On this I'm not willing to compromise. In any case, I've just switched from xterm to urxvt ($TERM == ...
1
vote
0answers
308 views

tmux in zsh with vi mode, toggle cursor shape between normal and insert mode

(note: I wrote this question on stackoverflow, but got flagged as offtopic, so I'm re-writing it here) Here's what I want: Consistent behavior (as much as possible) between Vim, MacVim, zsh with ...
1
vote
0answers
91 views

Prevent Vim from reformatting my line when I go to a new one

I like the smart auto-indenting that VIM does when I start a new line, but I hate what it reformats the line I left. I'm looking for a way to turn this off. Simple example. Say I have this HTML: ...
1
vote
0answers
41 views

Vim indentation and the prooftree package

I am using the fabulous vim-latex suite. I use (a lot) the prooftree package which has commands of the kind: \prooftree SOME-HYPOTHESIS-HERE \justifies SOME-CONCLUSION-HERE \using ...
1
vote
0answers
79 views

Vim: Custom Shortcut for Select all and Copy

I want to map a vim keyboard shortcut in .vimrc that copies all lines in a file to a shortcut key. I've tried various forms of let and map, but they don't recognize the actual copy command. I've ...
1
vote
0answers
265 views

Vimdiff functionality in Sublime Text 2

I wanted to know if it is possible to have a vimdiff like functionality to check for diff and have synchronized scrolling of two (or more) files in Sublime Text 2 just like vimdiff? Thanks
1
vote
0answers
70 views

Vim, how to avoid :set cuc side effect of setting column number

Possibly this is a bug, but I'm not sure. Through user fow in #vim on freenode, I've confirmed no side effect in 7.3.409, but there is a side effect in 7.3.547 (the version on my computer.) The ...
1
vote
0answers
466 views

Home and End keys doesn't work in vim inside tmux

I can't use home and end keys in vim, when in Tmux. I've got this strange stuff: H F H sample text my .tmux.conf: set-option -g mode-mouse on set-option -g mouse-select-pane on set-option -g ...
1
vote
0answers
288 views

backspace not working properly inside vim comEmu

When I start vim from inside conEmu, then backspace is not working properly. I know its not a conEmu issue. It's a vim problem with console. I tried all things like stty erase ^H, stty erase '^?', ...
1
vote
0answers
66 views

Is it possible to use Vim plugin CSExact with iTerm2?

I'm a bit anal about my color schemes, and in order to get really nice colors in Vim, I'm trying the CSExact plugin. I'm not sure if it's supposed to work at all in iTerm2 though? My terminal is set ...
1
vote
0answers
244 views

fix terminal vim colours (on focus lost)

When setting up Ubuntu 12.10 64bit (with gnome-terminal 3.6.0) I noticed that my vim colours mess up in the terminal as soon as the terminal loses focus. Everything is fine when using < C-z> and ...
1
vote
0answers
116 views

Vim PHP ctags for $['array'] C+]

So far I have this (Which is sufficient enough for me at the moment): ctags -R --languages=php --langmap=PHP:+.tpl --tag-relative=yes --PHP-kinds=+cf However, I still can't press "C-]" when I want ...
1
vote
0answers
198 views

Convert vim syntax highlighting for use with gedit

Is there an easy way to convert vim syntax highlighting definitions for use with GtkSourceView/gedit?
1
vote
0answers
796 views

Encoding over SSH Issues

I have a Linux machine and a Windows machine, both using Vim with the Powerline plugin. They both work great with patched fonts. Next, I want to SSH onto an OSX 10.6 machine and also use the Powerline ...
1
vote
0answers
522 views

bash vi key bindings: Can I map keys? Display mode (insert vs command)?

I am a long time vi(m) user and recently made the switch to using vi key binding in bash. I can already tell that this will be an improvement, but I would like to customize a few things to really ...
1
vote
0answers
69 views

Vim creates strange output when navigating up or down in Amazon EC2 Ubuntu

When navigating up or down in Vim whilst ssh-ed into an Amazon EC2 Ubuntu instance, strange output appears at the bottom of the screen. -I think the right-most info (e.g. 2,0-) is indicating cursor ...
1
vote
0answers
165 views

MacVim does not open new windows

This happened right after I removed some folders on my system ruby, the more I have reinstalled the xcode. But even so, it opens new windows, only the icon appears and the toolbar of the software. I ...
1
vote
0answers
591 views

Why does git difftool not work with vimdiff?

I just set up git and set git mergetool to vimdiff and it works as expected. If I set git config --global diff.tool vimdiff it behaves strangely: git diff x y will open less and display the changes ...
1
vote
0answers
135 views

Vim syntax files - Ignore line prefix

I have files containing code within a prefix-based structure, such as: perl: sub abc { perl: return "def"; perl: } I'd like to be able to highlight the perl as normal. i.e. ignore the perl: ...