1
- *syntax.txt* For Vim version 8.0 . Last change: 2017 Feb 06
1
+ *syntax.txt* For Vim version 8.1 . Last change: 2018 Apr 30
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -61,10 +61,12 @@ fine. If it doesn't, try setting the VIM environment variable to the
61
61
directory where the Vim stuff is located. For example, if your syntax files
62
62
are in the "/usr/vim/vim50/syntax" directory, set $VIMRUNTIME to
63
63
"/usr/vim/vim50". You must do this in the shell, before starting Vim.
64
+ This command also sources the | menu.vim | script when the GUI is running or
65
+ will start soon. See | 'go-M' | about avoiding that.
64
66
65
67
*:syn-on* *:syntax-on*
66
- The " :syntax enable" command will keep your current color settings. This
67
- allows using " :highlight" commands to set your preferred colors before or
68
+ The ` :syntax enable` command will keep your current color settings. This
69
+ allows using ` :highlight ` commands to set your preferred colors before or
68
70
after using this command. If you want Vim to overrule your settings with the
69
71
defaults, use: >
70
72
:syntax on
@@ -810,12 +812,9 @@ See |mysyntaxfile-add| for installing script languages permanently.
810
812
811
813
APACHE *apache.vim* *ft-apache-syntax*
812
814
813
- The apache syntax file provides syntax highlighting depending on Apache HTTP
814
- server version, by default for 1.3.x. Set "apache_version" to Apache version
815
- (as a string) to get highlighting for another version. Example: >
815
+ The apache syntax file provides syntax highlighting for Apache HTTP server
816
+ version 2.2.3.
816
817
817
- :let apache_version = "2.0"
818
- <
819
818
820
819
*asm.vim* *asmh8300.vim* *nasm.vim* *masm.vim* *asm68k*
821
820
ASSEMBLY *ft-asm-syntax* *ft-asmh8300-syntax* *ft-nasm-syntax*
@@ -1978,7 +1977,7 @@ set "lite_minlines" to the value you desire. Example: >
1978
1977
1979
1978
LPC *lpc.vim* *ft-lpc-syntax*
1980
1979
1981
- LPC stands for a simple, memory-efficient language: Lars Pensj| C. The
1980
+ LPC stands for a simple, memory-efficient language: Lars Pensjö C. The
1982
1981
file name of LPC is usually *.c. Recognizing these files as LPC would bother
1983
1982
users writing only C programs. If you want to use LPC syntax in Vim, you
1984
1983
should set a variable in your .vimrc file: >
@@ -2138,6 +2137,16 @@ set "msql_minlines" to the value you desire. Example: >
2138
2137
:let msql_minlines = 200
2139
2138
2140
2139
2140
+ N1QL *n1ql.vim* *ft-n1ql-syntax*
2141
+
2142
+ N1QL is a SQL-like declarative language for manipulating JSON documents in
2143
+ Couchbase Server databases.
2144
+
2145
+ Vim syntax highlights N1QL statements, keywords, operators, types, comments,
2146
+ and special values. Vim ignores syntactical elements specific to SQL or its
2147
+ many dialects, like COLUMN or CHAR, that don't exist in N1QL.
2148
+
2149
+
2141
2150
NCF *ncf.vim* *ft-ncf-syntax*
2142
2151
2143
2152
There is one option for NCF syntax highlighting.
@@ -2770,13 +2779,10 @@ Ruby syntax will perform spellchecking of strings if you define
2770
2779
2771
2780
SCHEME *scheme.vim* *ft-scheme-syntax*
2772
2781
2773
- By default only R5RS keywords are highlighted and properly indented.
2774
-
2775
- MzScheme-specific stuff will be used if b:is_mzscheme or g:is_mzscheme
2776
- variables are defined.
2782
+ By default only R7RS keywords are highlighted and properly indented.
2777
2783
2778
- Also scheme.vim supports keywords of the Chicken Scheme->C compiler. Define
2779
- b:is_chicken or g:is_chicken, if you need them.
2784
+ scheme.vim also supports extensions of the CHICKEN Scheme->C compiler.
2785
+ Define b:is_chicken or g:is_chicken, if you need them.
2780
2786
2781
2787
2782
2788
SDL *sdl.vim* *ft-sdl-syntax*
@@ -4621,7 +4627,9 @@ in their own color.
4621
4627
runtime colors/evening.vim
4622
4628
hi Statement ctermfg=Blue guifg=Blue
4623
4629
4624
- < After the color scheme has been loaded the
4630
+ < Before the color scheme will be loaded the
4631
+ | ColorSchemePre | autocommand event is triggered.
4632
+ After the color scheme has been loaded the
4625
4633
| ColorScheme | autocommand event is triggered.
4626
4634
For info about writing a colorscheme file: >
4627
4635
:edit $VIMRUNTIME/colors/README.txt
@@ -4689,23 +4697,26 @@ the same syntax file on all terminals, and use the optimal highlighting.
4689
4697
4690
4698
*bold* *underline* *undercurl*
4691
4699
*inverse* *italic* *standout*
4700
+ *nocombine* *strikethrough*
4692
4701
term={attr-list} *attr-list* *highlight-term* *E418*
4693
4702
attr-list is a comma separated list (without spaces) of the
4694
4703
following items (in any order):
4695
4704
bold
4696
4705
underline
4697
4706
undercurl not always available
4707
+ strikethrough not always available
4698
4708
reverse
4699
4709
inverse same as reverse
4700
4710
italic
4701
4711
standout
4712
+ nocombine override attributes instead of combining them
4702
4713
NONE no attributes used (used to reset it)
4703
4714
4704
4715
Note that "bold" can be used here and by using a bold font. They
4705
4716
have the same effect.
4706
4717
"undercurl" is a curly underline. When "undercurl" is not possible
4707
- then "underline" is used. In general "undercurl" is only available in
4708
- the GUI. The color is set with | highlight-guisp | .
4718
+ then "underline" is used. In general "undercurl" and "strikethrough"
4719
+ is only available in the GUI. The color is set with | highlight-guisp | .
4709
4720
4710
4721
start={term-list} *highlight-start* *E422*
4711
4722
stop={term-list} *term-list* *highlight-stop*
@@ -4812,10 +4823,11 @@ ctermbg={color-nr} *highlight-ctermbg*
4812
4823
Example: >
4813
4824
:highlight Normal ctermfg=grey ctermbg=darkblue
4814
4825
< When setting the "ctermbg" color for the Normal group, the
4815
- 'background' option will be adjusted automatically. This causes the
4816
- highlight groups that depend on 'background' to change! This means
4817
- you should set the colors for Normal first, before setting other
4818
- colors.
4826
+ 'background' option will be adjusted automatically, under the
4827
+ condition that the color is recognized and 'background' was not set
4828
+ explicitly. This causes the highlight groups that depend on
4829
+ 'background' to change! This means you should set the colors for
4830
+ Normal first, before setting other colors.
4819
4831
When a colorscheme is being used, changing 'background' causes it to
4820
4832
be reloaded, which may reset all colors (including Normal). First
4821
4833
delete the "g:colors_name" variable when you don't want this.
@@ -4869,7 +4881,8 @@ guifg={color-name} *highlight-guifg*
4869
4881
guibg={color-name} *highlight-guibg*
4870
4882
guisp={color-name} *highlight-guisp*
4871
4883
These give the foreground (guifg), background (guibg) and special
4872
- (guisp) color to use in the GUI. "guisp" is used for undercurl.
4884
+ (guisp) color to use in the GUI. "guisp" is used for undercurl and
4885
+ strikethrough.
4873
4886
There are a few special names:
4874
4887
NONE no color (transparent)
4875
4888
bg use normal background color
@@ -4981,10 +4994,11 @@ PmenuSbar Popup menu: scrollbar.
4981
4994
PmenuThumb Popup menu: Thumb of the scrollbar.
4982
4995
*hl-Question*
4983
4996
Question | hit-enter | prompt and yes/no questions
4997
+ *hl-QuickFixLine*
4998
+ QuickFixLine Current | quickfix | item in the quickfix window.
4984
4999
*hl-Search*
4985
5000
Search Last search pattern highlighting (see 'hlsearch' ).
4986
- Also used for highlighting the current line in the quickfix
4987
- window and similar items that need to stand out.
5001
+ Also used for similar items that need to stand out.
4988
5002
*hl-SpecialKey*
4989
5003
SpecialKey Meta and special keys listed with ":map", also for text used
4990
5004
to show unprintable characters in the text, 'listchars' .
@@ -5010,12 +5024,19 @@ StatusLine status line of current window
5010
5024
StatusLineNC status lines of not-current windows
5011
5025
Note: if this is equal to "StatusLine" Vim will use "^^^" in
5012
5026
the status line of the current window.
5027
+ *hl-StatusLineTerm*
5028
+ StatusLineTerm status line of current window, if it is a | terminal | window.
5029
+ *hl-StatusLineTermNC*
5030
+ StatusLineTermNC status lines of not-current windows that is a | terminal |
5031
+ window.
5013
5032
*hl-TabLine*
5014
5033
TabLine tab pages line, not active tab page label
5015
5034
*hl-TabLineFill*
5016
5035
TabLineFill tab pages line, where there are no labels
5017
5036
*hl-TabLineSel*
5018
5037
TabLineSel tab pages line, active tab page label
5038
+ *hl-Terminal*
5039
+ Terminal | terminal | window (see | terminal-size-color | )
5019
5040
*hl-Title*
5020
5041
Title titles for output from ":set all", ":autocmd" etc.
5021
5042
*hl-Visual*
0 commit comments