Vim Tidbits

From ChipWiki
Revision as of 16:16, 13 September 2021 by Chip (talk | contribs) (Starting vim notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Navigation Things I Forget

Windows
ctrl+w hjkl Move between windows
ctrl+w T Move window to tab
gt gT nnngt go to previous/next/nnnth tab
sp / vs split or vertical split window
Sessions
:mksession Save session to Session.vim
:mksession! Overwrite existing saved session
:qa :wqa quit all tabs and windows (optionally write first)
vim -S Session.vim Load session from Session.vim