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

Highlighting the initial { of a function and then typing 'va}' ('v' for entering visual mode, and 'a}' moves to the matching close brace. Similar commands work the [], (), and <> pairs) selects the entire function body. From there, a regular s command will operate on the entire selected text.


Mine is v% :)




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

Search: