Skip to content

Instantly share code, notes, and snippets.

@igrek51
Created October 26, 2022 09:47
Show Gist options
  • Save igrek51/88844966c689f0a25d5bbf9a70cc636e to your computer and use it in GitHub Desktop.
Save igrek51/88844966c689f0a25d5bbf9a70cc636e to your computer and use it in GitHub Desktop.
Vim cheatsheet

Vim cheatsheet

Save Gaining root

If you forgot to sudo:

:w !sudo tee %

Disable selection by mouse (to copy)

:set mouse-=a

Multiselection & replace

Ctrl^V
select (hjkl)
c - delete and insert (d to delete, I to insert)
ESC or Ctrl^[
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment