VIM using tabs

Posted under » Linux on 03 Jul 2018

The new VIM allows you to work with tabs, something like a web browser.

To open several tabs, do this.

vim -p firsttab.txt secondtab.txt

Once open, you can

:tabedit {file}   edit specified file in a new tab
:tabclose         close current tab

To toggle between tabs

:tabn         go to next tab
:tabp         go to previous tab
// normal mode
gt            go to next tab
gT            go to previous tab
Ctrl-PgDn     go to next tab
Ctrl-PgUp     go to previous tab

To close all other tabs (show only the current tab)

:tabonly

For basic VIM usage.

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css