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] + %

vim-bracket-match-1vim-bracket-match-2

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

Comments

Click here to write/view comments