vim:cheatsheet:tabs
Differences
This shows you the differences between two versions of the page.
vim:cheatsheet:tabs [2021/02/16 10:45] – created peter | vim:cheatsheet:tabs [2021/02/16 10:46] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM - Cheatsheet - Tabs ====== | ====== VIM - Cheatsheet - Tabs ====== | ||
+ | |||
+ | < | ||
+ | :tabnew or :tabnew {page.words.file} - open a file in a new tab | ||
+ | | ||
+ | Ctrl + wT - move the current split window into its own tab | ||
+ | | ||
+ | gt or :tabn[ext] - move to the next tab | ||
+ | gT or : | ||
+ | | ||
+ | #gt - move to tab number # | ||
+ | | ||
+ | :tabm[ove] # - move current tab to the #th position (indexed from 0) | ||
+ | | ||
+ | :tabc[lose] - close the current tab and all its windows | ||
+ | :tabo[nly] - close all tabs except for the current one | ||
+ | | ||
+ | :tabdo command - run the command on all tabs (e.g. :tabdo q - closes all opened tabs) | ||
+ | </ | ||
vim/cheatsheet/tabs.1613472317.txt.gz · Last modified: 2021/02/16 10:45 by peter