Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

VIM COMMANDS CHEATSHEET

Enter insert mode Delete a line

Enter command Paste the content of


mode the buffer

Search and then cycle


or DEL Delete a character /<search_term> through matches
with n and N

[ [
Delete character in Move to the beginning
or
backspace mode of a file

] ]
or
Move to the end of a
Undo changes
file

Search and replace all


Redo changes :%s/foo/bar/gci occurrences
with confirmation

Copy a line Esc + :w Save changes

Force quit Vim


Esc + :q! Esc + :wq Save and quit Vim
discarding all changes

FOR DETAILED EXPLANATION, READ

Beginner's Guide to Vim

You might also like