> To disable the matchparen plugin, I have this in my vimrc:
>
> let loaded_matchparen = 1
>
> Is there a way to load the matchparen plugin after vim has started up
> with it disabled in this manner? I know it can be switched off and on
> with these commands:
>
> :NoMatchParen
> :DoMatchParen
>
> ...but not if it's disabled by a "let loaded_matchparen = 1" in the
> vimrc. In that case I get:
>
> E492: Not an editor command: DoMatchParen
>
> I'd like for it to be disabled by default, but to also have the option
> of enabling it on the fly.
" pretend there never was a loaded_matchparen variable
unlet loaded_matchparen
" source the file that checks for loaded_matchparen's existence in the
" first place, and defines the NoMatchParen and DoMatchParen commands
runtime plugin/matchparen.vim
--
Best,
Ben
--
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
No comments:
Post a Comment