3 ms·
set wmh=0 set winheight=1000 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>_ This is the first stanza of
by slmbrhrt 16y ago
set wmh=0
set winheight=1000
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>_
This is the first stanza of my vimrc.
I use :sp and :vsp a lot. My capslock key is mapped to behave like left control.
The result is moving between files is a matter of holding capslock and pressing hjk or l.
I argue it's a lot faster than using a mouse or even control and pageup/down in a tab-based IDE.
For opening new files, tab completion is a godsend, and then there's other bonuses to using vim, like
:!grep "def functionImLookingFor" lib/*.py
and, when I'm sifting through logfiles for patterns, :%!grep has become one of my most often used tools.
- tlack 16y agoAny reason you're using :!grep rather than the built in ctags support? I've found the latter to be very useful but maybe I'm missing some functionality.
- slmbrhrt 16y agoMost of the time I'm not searching for function definitions across the whole base. This is just an example. That, and I haven't really fooled around with ctags much, though I've been meaning to for the longest time. No time like the present, I guess.