Mercurial > vim
comparison runtime/syntax/nosyntax.vim @ 7:3fc0f57ecb91 v7.0001
updated for version 7.0001
author | vimboss |
---|---|
date | Sun, 13 Jun 2004 20:20:40 +0000 |
parents | |
children | 5117153003bd |
comparison
equal
deleted
inserted
replaced
6:c2daee826b8f | 7:3fc0f57ecb91 |
---|---|
1 " 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 | |
8 if !has("syntax") | |
9 finish | |
10 endif | |
11 | |
12 " remove all syntax autocommands and remove the syntax for each buffer | |
13 augroup 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! | |
19 augroup END | |
20 | |
21 " Just in case: remove all autocommands for the Syntax event | |
22 au! Syntax | |
23 | |
24 if exists("syntax_on") | |
25 unlet syntax_on | |
26 endif | |
27 if exists("syntax_manual") | |
28 unlet syntax_manual | |
29 endif |