Tips


QUICK INTRO TO CUSTOM VIM MAPPINGS

One of the best things about vim is its ability to create custom mappings for almost any key in all modes.

Suppose you want Ctrl+S to save your document while you are in insert mode, because pressing

<Esc>:w<Enter>i 

to switch to normal mode, save the file, and return back to insert mode is a bit too much. According to vim philosophy, it actually IS too much, and thus you...


USING MOUSE WITH VIM IN THE TERMINAL

Just when you thought vim couldn't surprise you anymore, vim strikes again. As it turns out, vim supports mouse integration even in the terminal. Not only that, the support is mind blowingly simple and amazing. You can move your cursor, select text and even resize your panes in a split screen.

Most websites just say to use set mouse=a in your .vimrc to add mouse support to your vim. However,...