Better HN
topnewbestaskshowjobs
Log inSign up

mxmkm

2 karma · joined Apr 4, 2022 (4y ago) · 2 submissions

Submissions

comment 2y ago · link · parent

Selection color is not particularly good with comments: https://i.imgur.com/ExeT7Ne.png

comment 4y ago · link · parent

In vim there is `\zs` and `\ze` where `\zs` is the `\K` equivalent in grep.

Basically

  :%s/hello \zsworld\ze out there/planet/g
would find all `hello world out there` and replace `world` to `planet`.