blob: b0b0c17dfae599b754dffd438734f8bc8e533513 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax support file
2" Maintainer: Bram Moolenaar <Bram@vim.org>
3" Last Change: 2000 Jul 15
4
5" This file is used for ":syntax off".
6" It removes the autocommands and stops highlighting for all buffers.
7
8if !has("syntax")
9 finish
10endif
11
12" remove all syntax autocommands and remove the syntax for each buffer
13augroup syntaxset
14 au!
15 au BufEnter * syn clear
16 au BufEnter * if exists("b:current_syntax") | unlet b:current_syntax | endif
17 doautoall syntaxset BufEnter *
18 au!
19augroup END
20
21" Just in case: remove all autocommands for the Syntax event
22au! Syntax
23
24if exists("syntax_on")
25 unlet syntax_on
26endif
27if exists("syntax_manual")
28 unlet syntax_manual
29endif