pairing parentheses

14 views
Skip to first unread message

Gergely Buday

unread,
Aug 28, 2012, 10:20:51 AM8/28/12
to v...@vim.org
Hi there,

the button % pairs parentheses, square and curly brackets. I use perl
and I had some extra curly braces in comments which made vi to pair
braces wrongly. Is it possible to program vi so that it omits
delimiters in comments?

- Gergely

Ben Fritz

unread,
Aug 28, 2012, 10:52:44 AM8/28/12
to vim...@googlegroups.com, v...@vim.org
From :help %

Nothing special is done for matches in comments. You
can either use the matchit plugin |matchit-install| or
put quotes around matches.

The matchit plugin is distributed with Vim, but you need to enable it. See the referenced :help matchit-install for details.
Reply all
Reply to author
Forward
0 new messages