Is there a built-in function to syntax-highlight the corresponding

matching bracket? Yes. Vim includes the matchparen Plugin as standard plugin that is enabled by default. Whenever the cursor moves over an item defined with the ‘matchpairs’ option, Vim will highlight the corresponding bracket using the MatchParen highlighting group. However, if the corresponding parenthesis is not visible in the current window, the cursor won’t jump to it. The matchit plugin provides a similar function, that lets the cursor jump to related items (e.g. “if”, “else”, “endif” items) and skips matches in comments. This uses the % command to jump to corresponding items. Though both plugins provide similar functions they are unrelated and work differently. class=”l”>matchit-intro</span>

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind