Browse Source

Add command to save as sudo in Vim

DricomDragon 5 years ago
parent
commit
cb2643f869
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Guides/vim.md

+ 6 - 0
Guides/vim.md

@@ -16,6 +16,12 @@ to go to _x_
 
 `gU` and movement to uppercase
 
+### Write with SUDO
+
+when you forgot to sudo with Vim ...
+
+`:w !sudo tee %`
+
 ## Regex
 
 ### End of line