On Mar 10, 2009, at 8:44 PM, Charles Campbell:
> Try the following:
>
> au InsertEnter * if exists("syntax_on")| syn off | endif
> au InsertLeave * syn on
> au CursorMoved * if &modified && exists("syntax_on") | syn off | endif
> au BufWritePost * if !exists("syntax_on") | syn on | endif
>
> As you can see, I added one event -- if you've written the buffer,
> presumably its safe to syntax highlight.
Recently I tried using exists("syntax_on") but it always failed.
Then I tried exists("g:syntax_on") and that worked.
Could that be the problem?
--
Bill Muench
Santa Cruz, California
vim 7.2.124
MacOS 10.4.11
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---