On 19/02/09 03:36, Ben Fritz wrote:
>
>
> On Feb 18, 1:54 pm, Bee<[email protected]> wrote:
>> syntax off and syntax on effect all buffers.
>>
>> This works to turn of/off syntax color for only the current buffer.
>>
>> Are there other ways?
>>
>
> How about:
>
> :set syntax=
>
> I think that should be a little cleaner.
If you really want to "toggle":
if &syntax == &ft
setlocal syntax=
else
let &syntax = &ft
endif
":setlocal" rather than ":set" avoids any influence on other buffers.
Best regards,
Tony.
--
The brain is a wonderful organ; it starts working the moment you get up
in the morning, and does not stop until you get to school.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---