Monday, March 7, 2011

Re: re-enabling the disabled matchparen plugin

* Benjamin R. Haskell <vim@benizi.com> [110307 22:34]:
> On Mon, 7 Mar 2011, John Magolske wrote:
>> * Benjamin R. Haskell [110307 21:16]:
>>> On Mon, 7 Mar 2011, John Magolske wrote:
>>>
>>>> let loaded_matchparen = 1
>>>>
>>>> Is there a way to load the matchparen plugin after vim has started
>>>> up with it disabled in this manner?
>
> If you want something in your .vimrc:
>
> au VimEnter * NoMatchParen

Sweet! Much nicer than "let loaded_matchparen = 1" IMO.
These lines in my vimrc handle matchparen behaviour to my liking:

" disable matchparen plugin at startup
au VimEnter * NoMatchParen
" enable / disable the matchparen plugin
command Mp :DoMatchParen
command Mp0 :NoMatchParen

Regards,

John

--
John Magolske
http://B79.net/contact

--
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: