3 ms·
How can you insert text in a column-wise fashion? Not using a macro or some such. In vim, it's: (navigate to column) Ctrl+v 10j (or whatever) Shift-I (in
by lp251 9y ago
How can you insert text in a column-wise fashion? Not using a macro or some such.
In vim, it's:
(navigate to column)
Ctrl+v
10j (or whatever)
Shift-I
(insert text)
Escape
- chongli 9y agoWith the substitute command and an appropriate range. This sort of operation is extremely rare, though, so it's not the sort of thing you worry about when you're using a limited environment that has vi with no ability to install vim. Besides, it's far more common that you'd want to do an operation like this but the columns happen to be misaligned. Then you're reaching for substitute anyway. Might as well master the more flexible tool.