-
Notifications
You must be signed in to change notification settings - Fork 37
a brief introduction to key bindings
Liu-Cheng Xu edited this page Jan 15, 2018
·
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.
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 |
Enter | 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, backward |
Ctrl f | Insert, Command | right, forward |
Ctrl a | Insert, Command | beginning-of-line |
Ctrl e | Insert, Command | end-of-line |
Ctrl d | Insert, Command | delete |
j j | Insert, Comnand | <ESC> |
j k | Insert, Command | <ESC> |
v | Visual | <ESC> |
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 |
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 H | Normal | expand-left-window |
SPC w J | Normal | expand-down-window |
SPC w K | Normal | expand-up-window |
SPC w L | Normal | expand-right-window |
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] |