Skip to content

Instantly share code, notes, and snippets.

@skwid138
Last active May 3, 2021
Embed
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)


~/.vmrc

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