comparison runtime/doc/syntax.txt @ 5024:7a2ffd685c0e

Update runtime files. Remove duplicate tags in help.
author Bram Moolenaar <bram@vim.org>
date Fri, 28 Jun 2013 18:44:48 +0200
parents ad6996a23e3e
children 0d4e0cde36e1
comparison
equal deleted inserted replaced
5023:5122666ed3eb 5024:7a2ffd685c0e
1 *syntax.txt* For Vim version 7.3. Last change: 2013 Jun 26 1 *syntax.txt* For Vim version 7.3. Last change: 2013 Jun 28
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
2997 if any, is the text at the top of the screen supposed to be in?). 2997 if any, is the text at the top of the screen supposed to be in?).
2998 2998
2999 Another cause of slow highlighting is due to syntax-driven folding; see 2999 Another cause of slow highlighting is due to syntax-driven folding; see
3000 |tex-folding| for a way around this. 3000 |tex-folding| for a way around this.
3001 3001
3002 *g:tex_fast*
3003
3004 Finally, if syntax highlighting is still too slow, you may set >
3005
3006 :let g:tex_fast= ""
3007
3008 in your .vimrc. Used this way, the g:tex_fast variable causes the syntax
3009 highlighting script to avoid defining any regions and associated
3010 synchronization. The result will be much faster syntax highlighting; the
3011 price: you will no longer have as much highlighting or any syntax-based
3012 folding, and you will be missing syntax-based error checking.
3013
3014 You may decide that some syntax is acceptable; you may use the following table
3015 selectively to enable just some syntax highlighting: >
3016
3017 b : allow bold and italic syntax
3018 c : allow texComment syntax
3019 m : allow texMatcher syntax (ie. {...} and [...])
3020 M : allow texMath syntax
3021 p : allow parts, chapter, section, etc syntax
3022 r : allow texRefZone syntax (nocite, bibliography, label, pageref, eqref)
3023 s : allow superscript/subscript regions
3024 S : allow texStyle syntax
3025 v : allow verbatim syntax
3026 V : allow texNewEnv and texNewCmd syntax
3027 <
3028 As an example, let g:tex_fast= "M" will allow math-associated highlighting
3029 but suppress all the other region-based syntax highlighting.
3030
3031 Another cause of slow highlighting is due to syntax-driven folding; see
3032 |tex-folding| for a way around this.
3033
3034 *g:tex_fast* 3002 *g:tex_fast*
3035 3003
3036 Finally, if syntax highlighting is still too slow, you may set > 3004 Finally, if syntax highlighting is still too slow, you may set >
3037 3005
3038 :let g:tex_fast= "" 3006 :let g:tex_fast= ""
3139 s = superscripts/subscripts 3107 s = superscripts/subscripts
3140 < 3108 <
3141 By leaving one or more of these out, the associated conceal-character 3109 By leaving one or more of these out, the associated conceal-character
3142 substitution will not be made. 3110 substitution will not be made.
3143 3111
3144 *g:tex_isk*
3145 Tex: Controlling What's In A Keyword~
3146
3147 (La)Tex keywords normally use the characters 0-9,a-z,A-Z,192-255 only
3148 but the "_" is the only one that causes problems. So, by default,
3149 syntax/tex.vim overrides the usual |'iskeyword'| setting (using |:setlocal|)
3150 with one that works for LaTeX.
3151
3152 However, one may override this iskeyword re-setting by setting the
3153 variable, g:tex_isk, in one's .vimrc to whatever one wishes and
3154 it will be used instead.
3155
3156
3157 TF *tf.vim* *ft-tf-syntax*
3158
3159 There is one option for the tf syntax highlighting.
3160
3161 For syncing, minlines defaults to 100. If you prefer another value, you can
3162 set "tf_minlines" to the value you desire. Example: >
3163
3164 :let tf_minlines = your choice
3165
3166 *g:tex_isk* *g:tex_stylish* 3112 *g:tex_isk* *g:tex_stylish*
3167 Tex: Controlling iskeyword~ 3113 Tex: Controlling iskeyword~
3168 3114
3169 Normally, LaTeX keywords support 0-9, a-z, A-z, and 192-255 only. Latex 3115 Normally, LaTeX keywords support 0-9, a-z, A-z, and 192-255 only. Latex
3170 keywords don't support the underscore - except when in *.sty files. The 3116 keywords don't support the underscore - except when in *.sty files. The
3181 3127
3182 * If g:tex_isk exists, then it will be used for the local 'iskeyword' 3128 * If g:tex_isk exists, then it will be used for the local 'iskeyword'
3183 * Else the local 'iskeyword' will be set to 48-57,a-z,A-Z,192-255 3129 * Else the local 'iskeyword' will be set to 48-57,a-z,A-Z,192-255
3184 3130
3185 3131
3186 3132 TF *tf.vim* *ft-tf-syntax*
3133
3134 There is one option for the tf syntax highlighting.
3135
3136 For syncing, minlines defaults to 100. If you prefer another value, you can
3137 set "tf_minlines" to the value you desire. Example: >
3138
3139 :let tf_minlines = your choice
3140 <
3187 VIM *vim.vim* *ft-vim-syntax* 3141 VIM *vim.vim* *ft-vim-syntax*
3188 *g:vimsyn_minlines* *g:vimsyn_maxlines* 3142 *g:vimsyn_minlines* *g:vimsyn_maxlines*
3189 There is a trade-off between more accurate syntax highlighting versus screen 3143 There is a trade-off between more accurate syntax highlighting versus screen
3190 updating speed. To improve accuracy, you may wish to increase the 3144 updating speed. To improve accuracy, you may wish to increase the
3191 g:vimsyn_minlines variable. The g:vimsyn_maxlines variable may be used to 3145 g:vimsyn_minlines variable. The g:vimsyn_maxlines variable may be used to