Re:Show HN: Subvim – Vim customized to be like SublimeText
by efnx on Saturday April 06, 2013 @04:10PM
(#5504844)
This would be easily done by recording a macro and replaying it numlines/2-1 times. Possibly if starting on the first line:
q,a,j,$,i, odd,esc,j,q,4@a
[ Parent
| on HN ]
Re:Show HN: Subvim – Vim customized to be like SublimeText
by vitalique on Saturday April 06, 2013 @05:57PM
(#5505199)
Yep, using macros are the way to go for a task like this one. I'd use 'A' here to jump into the insert mode at the end of line though (commenting because '$i' part made me realize that I had probably never used '$' for movement at all).