Re:Vim anti-patterns
by rhdoenges on Wednesday February 08, 2012 @01:08AM
(#3565355)
say I have a line here ( | being my cursor)
From there, I hit D, which is the same as d$. I want to then paste it so I have something like
But I want to do that without entering insert mode.
[ Parent
| on HN ]
To break a single line into two lines on a whitespace boundary, one pattern I find myself using often is moving the cursor to the whitespace and hitting 'r<return>'.
(The 'r' command replaces the character under the cursor with the next key typed, without going into insert mode.)
Oh that's a nice trick, I'll remember that one. As an avid user of J I've been wanting its inverse.
Isn't J the inverse?