How To Use Vim?

Open Vim with `vim filename`

Press `i` to enter insert mode

Type your text

Press `Esc` to return to normal mode

Press `:w` to save

Press `:q` to quit

Press `:wq` to save and quit

Press `:q!` to quit without saving

Press `dd` to delete a line

Press `yy` to copy a line

Press `p` to paste

Press `u` to undo

Press `Ctrl+r` to redo

Press `/text` to search

Press `n` to go to the next search result

Press `N` to go to the previous search result

Press `h` to move left

Press `j` to move down

Press `k` to move up

Press `l` to move right

Press `:help` to open help

Suggested for You

Trending Today