annotate runtime/syntax/nosyntax.vim @ 307:7010607c5753

updated for version 7.0081
author vimboss
date Mon, 06 Jun 2005 21:50:35 +0000
parents 3fc0f57ecb91
children 5117153003bd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax support file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Maintainer: Bram Moolenaar <Bram@vim.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Last Change: 2000 Jul 15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " This file is used for ":syntax off".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " It removes the autocommands and stops highlighting for all buffers.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if !has("syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " remove all syntax autocommands and remove the syntax for each buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 augroup syntaxset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 au!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 au BufEnter * syn clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 au BufEnter * if exists("b:current_syntax") | unlet b:current_syntax | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 doautoall syntaxset BufEnter *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 au!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 augroup END
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Just in case: remove all autocommands for the Syntax event
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 au! Syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 if exists("syntax_on")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 unlet syntax_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 if exists("syntax_manual")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 unlet syntax_manual
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif