there we mainly introduce the commands of the internal command
there three modes for use:
- normal mode: press
escto enter. Just for move , delete , paste , and copy. - insert mode: press
iorato enter. Used for code like normal IDE. - command mode: press
:to enter - visual mode: press
vto enter
the cheat sheet
the fast move in normal mode
- basic:
h(left)j(down)k(up)l(right) - the skip for word:
wfor skipping to the begin of next word,bfor skipping to the begin of last word 0begin of line ,$end of line- the skip for search:
/keywordand pressenterto skip and pressnfor the next one
the trick of normal mode
u: undoctrl+r: redodd: delete the current lineyy: yank the current linep: paste to the word after mousex: delete the string in the mouse
the split
:svsplit in horizontal andvssplit in verticalctrl+wswitch between two windows:termopen a terminal in nvim
create the file and folder
because i install the plugin called nvim-tree, the way create a file is hon over the folder and press a the create a file, a folder, then with a / in the end