Vim – highlight and move to matching bracket

To find and move to matching bracket (curly, square or round) use the following command inside vim once you are in one of the brackets.

[ESC] + %


In case you want to just highlight/view the matching bracket, repeat the above command 2 times.

Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments