Vim Splits: A Guide to Doing Exactly What You Want
technotales.wordpress.com
technotales.wordpress.com
I've installed the Vrapper plug-in for eclipse as well... but since I find eclipse to be full of features but bloated as hell I've done some research on how to use Vi/m as an IDE.
I recommend to everyone eager to learn Vim, this free book
A byte of Vim - http://www.swaroopch.com/notes/Vim
There are a number of Vim scripts to ease developing, and thus making Vim become more of an IDE. For example:
Vim trinity http://www.vim.org/scripts/script.php?script_id=2347
includes the useful NERD_tree, taglist and srcexpl
NERD_commenter http://www.vim.org/scripts/script.php?script_id=1218
mru.vim http://www.vim.org/scripts/script.php?script_id=521
xml.vim http://www.vim.org/scripts/script.php?script_id=1397
There are many more plugins, and a lot of language-dependent plugins to help you develop in your language of choice, be it java, ruby, python, C, etc
I guess a great part of HN users are already masters of Vi/m, but I thougt this could be helpful for those still in their path to Virvana
map <C-j> <C-W>j<C-w>_
map <C-k> <C-W>k<C-w>_
map <C-h> <C-w>h<C-w>_
map <C-l> <C-w>l<C-w>_
Try these. They expand the window they move into. You'll love them.Remember, you have other options too, such as tabs, and just opening aux files as buffers and C-n or C-p to get to them.
map <Tab> ^W^W
I only have one split at a time (very rarely going up to three).In any case, ^w^w is quite easy to press twice without mapping, although that's entirely your call. It's fine if you have 2 equal splits and only want to jump to the other without resizing. When you have > 3, you definitely want to maximize the current split.