mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
useful tip for saving a buffer as sudo (#2405)
This commit is contained in:
parent
b5411e18b3
commit
2b6d022c9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user