remove first N characters, suggested by @nrn@bsd.network
This commit is contained in:
parent
46002f11a1
commit
5717e66e1b
4
index.md
4
index.md
@ -41,6 +41,10 @@ Helpful documents:
|
|||||||
|
|
||||||
:'k,'ls/\ *$//
|
:'k,'ls/\ *$//
|
||||||
|
|
||||||
|
#### Remove the first N (5) characters from every line
|
||||||
|
|
||||||
|
:%s/^.\{0,5\}//
|
||||||
|
|
||||||
#### Search and replace PATHs, using different delimiter
|
#### Search and replace PATHs, using different delimiter
|
||||||
|
|
||||||
:%s#/usr/local/log#/var/log#g
|
:%s#/usr/local/log#/var/log#g
|
||||||
|
Loading…
Reference in New Issue
Block a user