Skip to content

Instantly share code, notes, and snippets.

Last active May 3, 2021
What would you like to do?

Vim/Vi Commands

Delete an entire line dd (cannot be in Insert mode)

Enter Insert mode to edit the file i

Exit Insert mode esc

Save and Exit Vim :wq (cannot be in Insert mode)

Wrap text at 80 characters :set textwidth=80 (cannot be in Insert mode)

Quit WITHOUT saving :q! (cannot be in Insert mode)


Comment in ~/.vimrc " A single double quote to the right side will comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment