Vim Tidbits

From ChipWiki
Jump to navigationJump 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