3 ms·
Shouldn't these condensed in the vimrc with a suitable shortcut to avoid needing to remember regex like strings?
by Aperocky 3y ago
Shouldn't these condensed in the vimrc with a suitable shortcut to avoid needing to remember regex like strings?
- cerved 3y agoYou can but I would mostly use that as a reference. It's not as much about memorizing strings as it's learning a new language.
- Lio 3y agoI guess it depends. There's almost always multiple ways to do anything in Vim and pros and cons to each. Using a mapping will save you time if you use the same regex often but you can end up having to remember a lot of shortcuts. I find I forget rarely used mappings. If you learn the Vim command line and regex well it can be quicker to just type what you want on demand and then use one of the methods repeating it. Then forget about it till the next time you need it. It's also helpful if you have to use configured Vim occasionally.