:tabnew
in normal mode, it will open a new tab with an empty buffer. You can immediately open the tab with the file by passing its name as an argument:tabnew futuri.co
-p
in front of the list of file names — each has its own tab.vim -p habra.sh habr.py
tabpagemax
, for example::set tabpagemax=15
-p
. And if you are going to open more tabs than allowed, the files will open, but the tabs will not be displayed and you can navigate through them using the commands :next
and :prev
.:tabf
. A template is passed as a parameter to it, and if a file is found, it will open in a new tab. For example::tabf index*
:tabf
is that it works with <tab>
autocompletion.:tabn
and :tabp
, for the next and previous tab, or in the normal mode gt
and gT
respectively, and you can use 5gT
, etc.:tabfirst
commands can be useful :tabfirst
or :tabfir
open the first tab and :tablast
open the last one.:set showtabline=2
:tabs
.nmap ,t :tabnew<CR>
:tabm n
, where n is the position number to which we want to move it, of course, according to the rules of good tone, the numbering of the tabs starts from 0.:tabm 2
:sp
:vsp
).:tabdo command
, for example, you can change the name of a variable everywhere::tabdo %s///g
: tabnew [filename] | Open new tab |
: tabf pat * ern | Open tab by template |
: tabs | List of open tabs |
gt or: tabn | Next tab |
gT or: tabp | Previous tab |
: tabfirst or: tabfir | First tab |
: tablast | Last tab |
: tabm n | Move tab to n (from 0) |
: tabdo command | Run on all tabs |
:help tab-page-intro
Source: https://habr.com/ru/post/102373/
All Articles