Skip to content

Instantly share code, notes, and snippets.

@gpspake
Created May 1, 2018 16:22
Show Gist options
  • Save gpspake/455a50d32466ef6ddb5c5d52580f9d8b to your computer and use it in GitHub Desktop.
Save gpspake/455a50d32466ef6ddb5c5d52580f9d8b to your computer and use it in GitHub Desktop.
vim tricks
#sudo write to a file without exiting
:w !sudo tee %
#jump to end of file
shift + g
#search/highlight a word
?word
#toggle line numbers
:set number
:set nonumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment