1 " Vim syntax support file
2 " Maintainer: Bram Moolenaar <Bram@vim.org>
3 " Last Change: 2006 Apr 16
5 " This file is used for ":syntax off".
6 " It removes the autocommands and stops highlighting for all buffers.
12 " Remove all autocommands for the Syntax event. This also avoids that
13 " "syntax=foo" in a modeline triggers the SynSet() function of synload.vim.
16 " remove all syntax autocommands and remove the syntax for each buffer
19 au BufEnter * syn clear
20 au BufEnter * if exists("b:current_syntax") | unlet b:current_syntax | endif
21 doautoall syntaxset BufEnter *
25 if exists("syntax_on")
28 if exists("syntax_manual")