Note: Before starting ,For executing any command, firstly ':' we must open the standard prompt with colon. After writing command we should executing command by pressing Enter
- q: quit
- wq : save current file and quit.
- q! : quit without saving the file.
- w : save changes
- j : go down
- k : go up
- l : go right
- h : go left
- i : insert mode,if you just using keyboard, by clicking i you can start coding, if you wanna go back cursor mode press esc
- dd : delete a line
- gg : take you to the top of the page
- Capital g : takes you to the bottom of page
- alt gr + } : go down on the page through code blocks
- alt gr + { : go up on the page through code blocks
- how many line you wanna go down + j : take you to down by the given number
- how many line do you wanna go up + k : take you to up by the given number
- u : undo what you did
- ctrl + r : redo what you undo
- yy : copy the whole line
- p : paste the copied data to desired line with one line below
- P : paste the copied data to desired line with one line above
- v : after presing v you can go up with k and go down with j
- o : go to newline and get in insert mode
- w : horizontally go to the next word
- b : exact opposite of w
- : + desired line: for example press : 30, it'll you move to the line 30
- 0 : move to the very beginning of line(if there is some space front of line)
- shift+3 : move to the beginning of line