May I know how do I highlight a code region say for example
public void foo()
{
blah();
blah1();
blah2();
}
where my cursor is at ‘b’ of first blah(), how can I highlight the whole code region using viEmu or VIM per se?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Vim, that’s
va{(orva}, orvaBas synonyms). Theventers visual mode, anda{is a text object that selects a Block. If you don’t want the curly braces included, usei{(inner Block) instead. And if you want to operate (e.g. delete) on the block, you can skip visual mode and just use a command that takes a motion, e.g.da{.