Y
Hacker News
new
|
ask
|
show
|
jobs
by
eru
2049 days ago
By the way, that technique also works in vim and some other editors, I think.
1 comments
Jestar342
2049 days ago
Yep. Allows for some seriously cool programmatic editing:
g/^abc/norm ^3wciwHello^V^]2ei!
Any line starting with abc, replace the 3rd word with hello, and append an exclamation mark to the end of the 5th word. ^] is the control char for escape.
link