Skip to content

Instantly share code, notes, and snippets.

@narutaro
Created February 5, 2016 06:45
Show Gist options
  • Save narutaro/b4c92e21629e7b70e2e1 to your computer and use it in GitHub Desktop.
Save narutaro/b4c92e21629e7b70e2e1 to your computer and use it in GitHub Desktop.
vim tips

write a read-only file after modifiying some

:w !sudo tee % > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment