4 ms·
The ones I find most useful while coding are ci" ca) The i and a here are "in" and "around" So you can be anywhere inside a quote and do "change insi
by IanCal 13y ago
The ones I find most useful while coding are
ci"
ca)
The i and a here are "in" and "around"
So you can be anywhere inside a quote and do "change inside quotemark" and it'll delete everything inside and leave you in insert mode. "around" would delete everything inside and the quotemarks.
These can be used with other things, parentheses, square brackets (and I think some plugins extend it to html tags and the like).
Of course, you can swap out c for d, y or any of the other verbs.
Working in clojure and deleting everything inside a particular level of nested parentheses is awesome.
- alanning 13y agoOne nice little extra is that your cursor doesn't even have to be inside the string for the command to work.