Hacker News new | past | comments | ask | show | jobs | submit login

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.



You can also do cib (for inside '()') and ciB (for inside '[]') and cis (for inside sentences).


Gah! I'd been wondering how to do that--thanks for the tip!


I very regularly do ci" or ci' to edit within strings.


cit is another favorite. Try it inside HTML tags, for example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: