| i |
insert - insert new text before cursor |
| x |
delete current character |
| X |
backspace delete previous character |
| i |
insert - insert new text before cursor |
| x |
delete current character |
| X |
backspace delete previous character |
| u |
undo |
| Escape |
change to command mode |
| o |
new line below |
| O |
new line above |
| dd |
cut current line |
| dw |
cut current word |
| p |
paste before |
| P |
paste after |
| /[search_string] |
find [search_string] |
| n |
next result |
| N |
previous result |
| /( |
find next opening parentesis |
| % |
jump to matching parentesis |
| ci( |
change all text inside brackets () |
| di( |
delete all text inside brackets () |
| w |
next word |
| Ctrl-D |
move down a page (around 15 lines) |
| Ctrl-U |
move up a page (around 15 lines) |
| :new [filename] |
open a new [filename] to edit (can {tab} to see list) |
| Ctrl-w w |
switch down between windows / buffers |
| Ctrl-w W |
switch up between windows / buffers |
| Ctrl-w N |
Convert terminal into a “normal mode” buffer |
| :ls |
list opened buffers / files opened for edit |
| :wa |
write all - save all opened files |
| :bd |
buffer delete - to close current buffer |
| :term |
opens terminal in separate window |
| yw |
yank / copy word |
| yy |
yank / copy line |