sponsor Vim development Vim logo Vim Book Ad

vimwintab : "IDE-like" tabs in Vim

 script karma  Rating 3/2, Downloaded by 152  Comments, bugs, improvements  Vim wiki

created by
boson joe
script type
In Vim, we don't really have tabs in its regular meaning. Vim tabs encompass windows, but don't show what files are opened in these windows. So, long story short, vimwintab plugin adds to Vim a functionality of regular tabs that you can find in many text editors. Hence the name - \"Vim Windows Tabs\".

Each tab represents a buffer associated with a window. Multiple windows may have the same buffer opened as a tab. At one point of time any window may have one current tab, with the represented buffer displayed in the window. Current tab may be switched to the left or right one, and if you try to go beyond any end of the tab bar it will wrap.

Navigation between tabs is not interconnected with the buffer list and is done via plugin's own commands.

Tabs are added to windows according to the mode the plugin operates in. There are several of those, each of them provides different detection patterns which the plugin will follow to determine if a buffer needs to be added to a tab bar.

In general, plugin is very customizable - you can determine, how it will operate, in which mode, how individual tabs will look like, etc.

Please visit the plugin's wiki to find User Guide, Customization Guide, and other useful information - https://github.com/boson-joe/vimwintab/wiki .
Plugin itself and its documentation could be downloaded directly from GitHub - https://github.com/boson-joe/vimwintab .
install details

To make sure the plugin works properly, we suggest you to check that your Vim has version 8.2 or higher (`:echo v:version >= 802` should print out 1), has `popupwin` option set during compilation (`:echo has(\"popupwin\")` should print out 1), and `compatible` option is off (`:echo &compatible` should print out 0).


You can install the plugin by simply putting the files of the plugin in `plugin` folder in your `.vim` directory. One of the commands that could be used is `wget`. Type this in your terminal:

wget https://github.com/boson-joe/vimwintab/blob/master/plugin/vimwintab.vim

To have documentation, do the same with files in doc/ directory - you need to put them into doc/ directory in your .vim directory.

Plugin manager

You may find plugin managers convenient to install and manage plugins you want in your Vim, including vimwintab.

vim-plug - https://github.com/junegunn/vim-plug

If you are using vim-plug plugin manager, refer to their manual (https://github.com/junegunn/vim-plug#usage).

Vundle - https://github.com/VundleVim/Vundle.vim

Vundle plugin manager seems to require `filetype off`, which is desirable, though not required, to be `on` for vimwintab smooth operation, so we are not describing the procedure here.

Pathogen - https://github.com/tpope/vim-pathogen

If you are using Pathogen plugin manager, refer to their manual here(https://github.com/tpope/vim-pathogen#installation).

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vimwintab.tar.xz 1.0.1 2021-08-05 8.2 boson joe vimwintab (v. 1.0.1), with documentation and license.
vimwintab.vim 1.0.1 2021-08-05 8.2 boson joe Additional guards added against multiple sources of the script.
vimwintab.tar.xz 1.0.0 2021-07-13 8.2 boson joe vimwintab (v. 1.0.0), with documentation and license.
vimwintab.vim 1.0.0 2021-07-12 8.2 boson joe Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.