4 ms·
OP should consider using buffers: you can :ls to display the list of buffers (which I have mapped to gl) and then :bn (where n is a buffer number) to go to some
by pera 8y ago
OP should consider using buffers: you can :ls to display the list of buffers (which I have mapped to gl) and then :bn (where n is a buffer number) to go to some specific buffer. Also, in the same fashion of gt and gT for tabs, I mapped gb to go to the next buffer, gB to the previous one, and g space to go to the last one. IIRC all these key bindings are unused by default. In my opinion tabs are more useful/interesting when you work with multiple windows layouts.
https://github.com/pera/vim/blob/master/.vimrc https://github.com/pera/vim/blob/master/.vimrc
- haberman 8y agoI use CTRL-j and CTRL-k to cycle through my tabs. It's like j/k except for tabs instead of lines: map <C-j> :tabn<CR> map <C-k> :tabp<CR> I also alias ":split" to ":tabe", because my fingers will be forever wired to type ":split <filename>" when I want to open a new file. cnoreabbrev split tabe
- omn1 8y agoOP here, will try.