Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mathias_10gen
· 15y ago · 0 comments
ci( is another nifty trick that will do the same but will work anywhere between the two ('s not just at the beginning of globalConfig. See ":help text-objects" for more details on one of the more powerful feature of vim.
Comments
[–]
thesteamboat
15y ago
You can also do cib (for inside '()') and ciB (for inside '[]') and cis (for inside sentences).
[–]
bcrescimanno
15y ago
Gah! I'd been wondering how to do that--thanks for the tip!
[–]
avinashv
15y ago
I very regularly do ci" or ci' to edit within strings.
[–]
cdmwebs
15y ago
cit is another favorite. Try it inside HTML tags, for example.