Skip to content

Instantly share code, notes, and snippets.

@glnds
glnds / vim-cheatsheet.md
Last active May 16, 2022
Vim Cheatsheet
View vim-cheatsheet.md

Vim Cheatsheet

vim {filename}
General
:e {filename} edit a file
:q quit
:q! quit without writing
:wa write all changed files (save all changes), and keep working
@Starefossen
Starefossen / vim-cheats.md
Last active Jun 22, 2022
My vim cheat sheet for working with tabs and window splits.
View vim-cheats.md

Tabs

New Tab

  • :tabnew - new blank tab
  • :tabedit [file] - open file in tab

Cursor Movement

  • gt (:tabn) - next tab