mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-29 17:40:42 +02:00
useful tip for saving a buffer as sudo (#2405)
This commit is contained in:
@@ -156,6 +156,7 @@ A few important examples of 'Verbs', 'Modifiers', and 'Nouns':
|
|||||||
:later 15m # Reverse above command
|
:later 15m # Reverse above command
|
||||||
ddp # Swap position of consecutive lines, dd then p
|
ddp # Swap position of consecutive lines, dd then p
|
||||||
. # Repeat previous action
|
. # Repeat previous action
|
||||||
|
:w !sudo tee % # Save the current file as root
|
||||||
```
|
```
|
||||||
|
|
||||||
## Macros
|
## Macros
|
||||||
|
Reference in New Issue
Block a user