Tuesday, January 22, 2013

Re: Limiting ftplugins to relevant buffers

On Tuesday, January 22, 2013 3:41:27 PM UTC-6, Ben Fritz wrote:
>
> I think the problem is actually here:
>
> if !exists('g:DisableCFE3KeywordAbbreviations')
> let g:DisableCFE3KeywordAbbreviations=1
> call EnableCFE3KeywordAbbreviations()
> endif
>
> That should be a buffer-local variable, not a global variable, otherwise the abbreviations will only load on the first buffer.

Or if it's supposed to be a global disable, don't set it to true inside the plugin file; it would still be ok to check its existence.

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