Re:Your problem with Vim is that you don't grok vi
by losvedir on Monday August 22, 2011 @10:53PM
(#2915135)
> Ctrl-V e 1 0 j c A_NEW_WORD
Another approach is something like:
*:.,+9s/<ctrl-r>//A_NEW_WORD
But alas, that's 21 keystrokes.
(I post this now because it was closer to my first thought on how to approach the problem, and wanted to write it out to see if it was shorter. It wasn't, but maybe it'll be useful to someone. I learned about
<ctrl-r>/
(fills in a search and replace with the previously searched expression), while writing it.
Another approach is something like:
But alas, that's 21 keystrokes.(I post this now because it was closer to my first thought on how to approach the problem, and wanted to write it out to see if it was shorter. It wasn't, but maybe it'll be useful to someone. I learned about <ctrl-r>/ (fills in a search and replace with the previously searched expression), while writing it.