comparison runtime/doc/syntax.txt @ 2520:6768ebd0bc04 vim73

Remove unused code.
author Bram Moolenaar <bram@vim.org>
date Sun, 08 Aug 2010 16:38:42 +0200
parents a29075150aee
children a89f8c036bc5
comparison
equal deleted inserted replaced
2519:a76416990f54 2520:6768ebd0bc04
1 *syntax.txt* For Vim version 7.3e. Last change: 2010 Aug 04 1 *syntax.txt* For Vim version 7.3e. Last change: 2010 Aug 08
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
90 :syntax on " start highlighting, use 'background' to set colors 90 :syntax on " start highlighting, use 'background' to set colors
91 91
92 NOTE: Using ":gui" in the |gvimrc| means that "gvim -f" won't start in the 92 NOTE: Using ":gui" in the |gvimrc| means that "gvim -f" won't start in the
93 foreground! Use ":gui -f" then. 93 foreground! Use ":gui -f" then.
94 94
95 95 *g:syntax_on*
96 You can toggle the syntax on/off with this command > 96 You can toggle the syntax on/off with this command: >
97 :if exists("syntax_on") | syntax off | else | syntax enable | endif 97 :if exists("g:syntax_on") | syntax off | else | syntax enable | endif
98 98
99 To put this into a mapping, you can use: > 99 To put this into a mapping, you can use: >
100 :map <F7> :if exists("syntax_on") <Bar> 100 :map <F7> :if exists("g:syntax_on") <Bar>
101 \ syntax off <Bar> 101 \ syntax off <Bar>
102 \ else <Bar> 102 \ else <Bar>
103 \ syntax enable <Bar> 103 \ syntax enable <Bar>
104 \ endif <CR> 104 \ endif <CR>
105 [using the |<>| notation, type this literally] 105 [using the |<>| notation, type this literally]
923 Example: > 923 Example: >
924 :set syntax=c.doxygen 924 :set syntax=c.doxygen
925 or > 925 or >
926 // vim:syntax=c.doxygen 926 // vim:syntax=c.doxygen
927 927
928 It can also be done automatically for c, cpp and idl files by setting the 928 It can also be done automatically for C, C++, C# and IDL files by setting the
929 global or buffer-local variable load_doxygen_syntax. This is done by adding 929 global or buffer-local variable load_doxygen_syntax. This is done by adding
930 the following to your .vimrc. > 930 the following to your .vimrc. >
931 :let g:load_doxygen_syntax=1 931 :let g:load_doxygen_syntax=1
932 932
933 There are a couple of variables that have an effect on syntax highlighting, and 933 There are a couple of variables that have an effect on syntax highlighting, and
3166 The common ones are explained here. The arguments may be given in any order 3166 The common ones are explained here. The arguments may be given in any order
3167 and may be mixed with patterns. 3167 and may be mixed with patterns.
3168 3168
3169 Not all commands accept all arguments. This table shows which arguments 3169 Not all commands accept all arguments. This table shows which arguments
3170 can not be used for all commands: 3170 can not be used for all commands:
3171 *E395* *E396* 3171 *E395*
3172 contains oneline fold display extend concealends~ 3172 contains oneline fold display extend concealends~
3173 :syntax keyword - - - - - - 3173 :syntax keyword - - - - - -
3174 :syntax match yes - yes yes yes - 3174 :syntax match yes - yes yes yes -
3175 :syntax region yes yes yes yes yes yes 3175 :syntax region yes yes yes yes yes yes
3176 3176