3 ms·
The video shows some useful techniques but falls a bit flat as vim advocacy for me. Any modern editor (including sublime, vscode, various jetbrain things and of
by patrec 4y ago
The video shows some useful techniques but falls a bit flat as vim advocacy for me. Any modern editor (including sublime, vscode, various jetbrain things and of course vim itself with vim-visual-multi) can do this better and more easily with multiple cursors.
Interestingly, although a lot of comments here are "he should have used macros", one thing the video did suggest to me is that maybe I should be using :norm more instead of messing around with macros (which I feel are abominably unergonomic in both vim and emacs).
Because he toggled insert mode, he did somewhat inelegantly use two :norm commands. But you can in fact do it with one. Pressing <C-V> <Esc> to insert a literal esc at the end of the first text insertion, and then typing 'A">++</a>' will work fine.
- IshKebab 4y agoI agree. This mostly confirms my suspicion that multiple cursors are a better solution than Vim for most editing tasks.