Vim Configuration for Server-Side Editing

vimvimrc

I always use Vim on our servers (mostly Ubuntu based) and I always lack a good configuration that suits vim over SSH without too much frills.

I'd like to gather as much as possible configuration settings for someone who writes mostly bash, zsh and ruby code directly on the server.

Best Answer

The best thing I've learned recently is using jj instead of <esc> to enter normal mode:

imap jj <Esc>

Also, if you make use of splits via the split (tall terminal) or vsplit (wide terminal) command, then remapping the switch-split command is invaluable; I use , (comma) to switch amongst my splits:

map , <C-w><C-w>

Check out the top questions for vim over on Stack Overflow, too.