Skip to content

a brief introduction to key bindings

Liu-Cheng Xu edited this page Mar 27, 2017 · 8 revisions

Space key is recommended as the leader key. If you prefer another key, replace SPC in the following sections with your own leader key.

Basic

Key Binding Mode Description
SPC q Normal quit
SPC Q Normal quit-without-saving
SPC d Normal half-page-down
SPC u Normal half-page-up
H Normal beginning-of-line
L Normal end-of-line
Y Normal yank-to-the-end-of-line
U Normal redo
; Normal :
Ctrl h Insert, Command backspace
Ctrl j Insert, Command down, next-command
Ctrl k Insert, Command up, previous-command
Ctrl b Insert, Command left
Ctrl f Insert, Command right
j j Insert <ESC>
j k Insert <ESC>
Ctrl a Command beginning-of-line
Ctrl e Command end-of-line
Ctrl d Command delete
j j Command <ESC>
j k Command <ESC>
v Visual <ESC>

Buffer

Key Binding Mode Description
SPC b p Normal previous-buffer
SPC b n Normal next-buffer
SPC b f Normal first-buffer
SPC b l Normal last-buffer
SPC b d Normal delete-buffer
SPC b k Normal kill-buffer

Windows

Key Binding Mode Description
SPC w d Normal delete-window
SPC w h Normal window-left
SPC w j Normal window-down
SPC w k Normal window-up
SPC w l Normal window-right
SPC w s Normal split-window-below
SPC w - Normal split-window-below
SPC w v Normal split-window-vertical
SPC w | Normal split-window-vertical
SPC w = Normal balance-windows
SPC w 2 Normal layout-double-columns
SPC [1-9] Normal switch-to-window-[1-9]
Clone this wiki locally