My Biggest Vim Productivity Boost
syskall.com
syskall.com
Question, though -- why not use the native <C-i> and <C-o> to navigate between jump points? It will get you to the previous and next buffers but has just enough granularity to be useful for other things, too. (<C-6> is native buffer toggling and ignores jump points, but it's not easy to type.)
" Mappings for controlling tabs.
noremap <M-a> :tabprevious<CR>
noremap <M-s> :tabnext<CR>
noremap <M-1> :tabnext 1<CR>
noremap <M-2> :tabnext 2<CR>
noremap <M-3> :tabnext 3<CR>
noremap <M-4> :tabnext 4<CR>
noremap <M-5> :tabnext 5<CR>
noremap <M-6> :tabnext 6<CR>
noremap <M-7> :tabnext 7<CR>
noremap <M-8> :tabnext 8<CR>
noremap <M-9> :tabnext 9<CR>
More here: https://github.com/daGrevis/Dotfiles/blob/master/.vimrc .Isn't there some vim mailing list you could subscribe to?
(and then probably go all grumpy when people don't use vim the "right" way)
A: You don't, they tell you.
I think I'll try switching to "one tab per project", but stick with splits for individual files within a project.
This enables relative line numbering, meaning that moving between lines suddenly gets much quicker. For example: I can type 18j and not miss.
map ,t :tabnew
map gf <C-W>gf
map <S-Right> gt
map <S-Left> gTnot really sure why.. (i have my screen tabbing with F11 and F12).
you can try dwm.vim (https://github.com/spolu/dwm.vim) if you have spare keybindings.
if you are still not convinced and want to use screen, i recommend tmux since you can split both horizontal and vertical.