$ apm install kak-mode
key | description | with shift |
---|---|---|
j | move down | extend selection down |
k | move up | extend selection up |
h | move left | extend selection to left |
l | move right | extend selection to right |
w | select to next word start | extend selection to next word start |
e | select to next word end | extend selection to next word end |
b | select to previous word start | extend selection to previous word start |
key | description | with shift | with alt |
---|---|---|---|
u | undo last change | redo last change | |
p | paste yanked text after selection | ||
c | change selected text (erase and enter insert mode) | ||
o | insert on new line below | insert on new line above | |
y | copy selected text | ||
` | to lower case | swap case | |
~ | to upper case | ||
> | indent selections | ||
< | outdent selections | ||
d | erase selected text | ||
backspace | erase selected text (or the character before cursor) or modify count |
key | description | with shift | with alt | config |
---|---|---|---|---|
space | remove all selections except main |
| ||
f | select to the next occurrence of given character | select to the previous occurrence of given character |
| |
t | select until the next occurrence of given character | select until the previous occurrence of given character |
| |
% | select whole buffer |
| ||
m | select to next matching character | extend selection to next matching character | matchingChars | |
a | - | insert at line end |
| |
x | select line | extend selection to next line |
| |
; | reduce selections to their cursor |
|
Searching is triggered with /
key - the search pattern input will be displayed in the status bar. Either a regular expression or a string can be entered.
If the regular expression is invalid, is will be treated as a query string.
key | description | with shift | with alt |
---|---|---|---|
/ | select next match after each selection | extend selection to match | select previous match before each selection |
n | select next match using the last used search pattern | extend selection to match | select previous match using the last used search pattern |
Go to mode is activated with g
key - a menu will appear listing the possible moves.
key | description |
---|---|
g | if a count is set, go to the corresponding line – otherwise enter goto mode or go to the first line if in goto mode already |
k | go to the first line |
e | go to last char of last line |
j | go to the last line |
f | go to file |
a | go to buffer |
t | go to the first visible line |
b | go to the last visible line |
c | go to the middle visible line |
h | go to line begin |
l | go to line end |
i | go to non blank line start |
key | description |
---|---|
i | change mode to insert |
1-9 | set count |