Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

and ct" will change everything up to the double quote. Great stuff.


Look up text objects such as i" and a". They're great.

E.g:

- ci" (change inner double quote) will change (delete and put you in insert mode) the text between to double quotes.

- ca" (change _a_ double quote) will change the text and the surrounding double quotes.

There are text objects for quotes, brackets, sentences, blocks, etc. There are also plugins that create text objects such as arguments (to functions) in programming languages.


I believe the 'a' is short for 'around'.


The :help disagrees. All i* text-objects are "inner " and a text-objects are "a *".




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

Search: