3 ms·
If you do not know what cf" does, you've been using Vim like you would use a normal text editor. Which is fine. But you're missing out a lot. Do yourself a fav
by exDM69 13y ago
If you do not know what cf" does, you've been using Vim like you would use a normal text editor. Which is fine. But you're missing out a lot.
Do yourself a favor and go figure out what's the difference between:
cf"
cF"
ct"
ci"
ca"
Note: you can substitute c for any "verb" (d, y, ~, etc) and " for many delimeters.
:help text-objects
- yesimahuman 13y agoThanks for the pointers, will do. One strange thing about vim is everyone seems to have a core set of commands they use. An interesting tool.
- exDM69 13y agoThe thing with Vim is that even though you can use it like a regular text editor, it isn't too good at that. But when you grok the Vim philosophy, enter one command, verb + noun, then do your edit and press esc, you'll feel like flying.