On 12/03/10 04:02, Benjamin R. Haskell wrote:
On Fri, 12 Mar 2010, Philip Rhoades wrote:
People,
I forgot what the following is supposed to do but it causes errors when I load
NERDTree:
au VimEnter * au FileType * if !exists(b:match_words) | let b:match_words
=&matchpairs | endif
Also not sure what it's supposed to accomplish, but it should be:
if !exists('b:match_words')
rather than
if !exists(b:match_words)
Yes, and with that change the autocommand is useful when matchit is
installed: it sets up a FileType autocommand after all those installed
by ftplugin.vim, plugins, etc., so that when, for a certain filetype,
the ftplugin doesn't know about matchit, the % key behaviour falls back
to the default (as defined by the 'matchpairs' option), but still
"enhanced" by matchit to avoid jumping between, let's say, ( in code and
) in a comment.
Best regards,
Tony.
--
"The warning message we sent the Russians was a calculated ambiguity
that would be clearly understood."
-- Alexander Haig
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php