In traditional text editors, whenever I needed to open a string or parentheses and type something between it I used to do:
() or ""But in vim (that is if I followed the vim way) the process becomes quite tedious as I have to enter the normal mode to move a whole bunch of times:
() or ""<ESC>i<ESC>laIf it is not a good practice to use the arrow keys at any time, is there a more efficient way of doing this kind of task in vim?
No. Doing it in Vim is exactly the same as in your "traditional" editor:
() or ""leftrightBut… why don't you type the opening character, what you want inside the pair and then the closing character?
( or ") or "Too simple?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With