Hacker News new | ask | show | jobs
by GeneralMaximus 6135 days ago
:h windows

I prefer using tabs with Vim. Here's a short overview:

* :tabnew to open a new tab.

* :tabe <FILENAME> to edit a file in a new tab.

* :q or :close to close a tab.

* :tabnext and :tabprevious to move between tabs.

* Ctrl+PgUp and Ctrl+PgDown are bound to :tabnext and :tabprevious. On my MacBook, I bind those to Cmd+[ and Cmd+].

* And, of course, :h tabs to find help.

1 comments

I have added these line in my .vimrc.

map th :tabnext<CR> map tl :tabprev<CR> map tn :tabnew<CR> map td :tabclose<CR>

Why th and tl? You already have gt and gT.
Well just binding it to h/l combination. Easy to follow.