Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to work with tabs in Vim

📅 2011-Sep-04 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

 

[ Tabs open in Vim and GVim on Windows. ]

Like all modern code editors, Vim has support for tabs since version 7.0. Not only are tabs supported in the GVim (the GUI version of Vim), but they are also fully supported in the console Vim!

Tabs are just the latest in a long history of means for editing multiple files in Vi or Vim. First came buffers, of which only one could be seen on the editor display at a time. Then came windows, which allowed the user to split the editor display into multiple panes, each capable of displaying a different file. And now tabs, each tab of which can be split into multiple windows.

Here are the basic tab commands to get started:

Tried with: Vim 7.3