Skip to content

Instantly share code, notes, and snippets.

@roulette6
Last active January 2, 2020 05:36
Show Gist options
  • Save roulette6/950c23094e2bd723d0d10b06c78048c4 to your computer and use it in GitHub Desktop.
Save roulette6/950c23094e2bd723d0d10b06c78048c4 to your computer and use it in GitHub Desktop.
Vim shortcuts

Buffers

keys Action
:ls list open buffers
:b3 go to third buffer
:bn buffer next
:bp buffer previous
:bp buffer delete (close)
:e . browse working directory
:e file edit file

Splits

keys Action
:sp file open file on horizontal split
:vsp file open file on vertical split
ctrl+w, s horizontally split window
ctrl+w, v vertically split window
ctrl+w, w switch window
ctrl+w, q quit window
ctrl+w, h move to left window
ctrl+w, l move to right window
ctrl+w, j move to window below
ctrl+w, k move to window above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment