Show Menu
Cheatography

Vim Cheatsheet Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Coding

=i{
Auto code indent
 

Tabs

:tabedit file
Open file in tab.
gt
Next tab.
gT
Previous tab.
{n}gt
Go to nth tab.
:tabfirst
First tab.
:tablast
Last tab.
:tabonly
Close all other tabs.
:tabclose
Close current tab.
:mksession {name}.vim
Save all open tabs in a session.
vim -p file1 file2 file3
Open files in tabs.