summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAbraham Toriz Cruz <a.wonderful.code@gmail.com>2016-11-10 04:17:20 -0600
committerven <vendethiel@hotmail.fr>2016-11-10 11:17:20 +0100
commit2b6d022c9d126d5fc2b840401ee30674a31bdada (patch)
tree08af3fdec9f9c826d29f3a5f39fb754f44e5b941
parentb5411e18b3985831b82c8631138ce7543e4e4e23 (diff)
useful tip for saving a buffer as sudo (#2405)
-rw-r--r--vim.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/vim.html.markdown b/vim.html.markdown
index edbc3da7..96cc20cb 100644
--- a/vim.html.markdown
+++ b/vim.html.markdown
@@ -156,6 +156,7 @@ A few important examples of 'Verbs', 'Modifiers', and 'Nouns':
:later 15m # Reverse above command
ddp # Swap position of consecutive lines, dd then p
. # Repeat previous action
+ :w !sudo tee % # Save the current file as root
```
## Macros