Tabs in Vim

tabs in vimSince its 7th version, Vim has tabs functionality. You can open multiple files in tabs and do lots of wonderful things with them. To open multiple files from the console, just type:

vim -p filename1 filename2 …

Or if you’re already inside Vim, give the command,

:tabnew filename

to open a file in a new tab. You can traverse the tabs with the combinations gt and gT. To close a tab just use the exit command (:q).

There is a wide range of cool stuff you can do with tabs. To learn more, just type

:help tabs

in Vim or head to this page.

See you, bye!

3 responses on “Tabs in Vim

      1. Chavie

        Nah, what I meant was that there was some mismatch between the version we used at uni (Fedora/KDE) and the version I had installed at home (Ubuntu/Gnome). But yeah, should give it another try. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *