(Grav GitSync) Automatic Commit from RealStickman
This commit is contained in:
parent
c3f1d4ddaf
commit
f4edba4fac
20
pages/04.other/11.vim/default.en.md
Normal file
20
pages/04.other/11.vim/default.en.md
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
title: Vim
|
||||
---
|
||||
|
||||
[toc]
|
||||
## Get output from command
|
||||
`:r!(command)`
|
||||
|
||||
*Example to get UUID for a disk*
|
||||
`:r!blkid /dev/(partition) -sUUID -ovalue`
|
||||
|
||||
## Write as sudo user
|
||||
`:w !sudo tee %`
|
||||
|
||||
## Replace strings
|
||||
Globally replace strings
|
||||
`:%s/foo/bar/g`
|
||||
|
||||
Replace strings in line 6 to 10
|
||||
`:6,10s/foo/bar/g`
|
Loading…
Reference in New Issue
Block a user