mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
parent
bd23fefb39
commit
0d852bdc69
@ -877,12 +877,33 @@ MenuPopup Just before showing the popup menu (under the
|
|||||||
*OptionSet*
|
*OptionSet*
|
||||||
OptionSet After setting an option (except during
|
OptionSet After setting an option (except during
|
||||||
|startup|). The |autocmd-pattern| is matched
|
|startup|). The |autocmd-pattern| is matched
|
||||||
against the long option name.
|
against the long option name. |<amatch>|
|
||||||
|v:option_old| indicates the old option value,
|
indicates what option has been set.
|
||||||
|v:option_new| indicates the new value,
|
|
||||||
|v:option_type| indicates whether it's global
|
|v:option_type| indicates whether it's global
|
||||||
or local scoped and |<amatch>| indicates which
|
or local scoped.
|
||||||
option was set.
|
|v:option_command| indicates what type of
|
||||||
|
set/let command was used (follow the tag to
|
||||||
|
see the table).
|
||||||
|
|v:option_new| indicates the newly set value.
|
||||||
|
|v:option_oldlocal| has the old local value.
|
||||||
|
|v:option_oldglobal| has the old global value.
|
||||||
|
|v:option_old| indicates the old option value.
|
||||||
|
|
||||||
|
|v:option_oldlocal| is only set when |:set|
|
||||||
|
or |:setlocal| or a |modeline| was used to set
|
||||||
|
the option. Similarly |v:option_oldglobal| is
|
||||||
|
only set when |:set| or |:setglobal| was used.
|
||||||
|
|
||||||
|
Note that when setting a |global-local| string
|
||||||
|
option with |:set|, then |v:option_old| is the
|
||||||
|
old global value. However, for all other kinds
|
||||||
|
of options (local string options, global-local
|
||||||
|
number options, ...) it is the old local
|
||||||
|
value.
|
||||||
|
|
||||||
|
OptionSet is not triggered on startup and for
|
||||||
|
the 'key' option for obvious reasons.
|
||||||
|
|
||||||
Usage example: Check for the existence of the
|
Usage example: Check for the existence of the
|
||||||
directory in the 'backupdir' and 'undodir'
|
directory in the 'backupdir' and 'undodir'
|
||||||
|
@ -1195,6 +1195,7 @@ tag command action ~
|
|||||||
|:compiler| :comp[iler] do settings for a specific compiler
|
|:compiler| :comp[iler] do settings for a specific compiler
|
||||||
|:continue| :con[tinue] go back to :while
|
|:continue| :con[tinue] go back to :while
|
||||||
|:confirm| :conf[irm] prompt user when confirmation required
|
|:confirm| :conf[irm] prompt user when confirmation required
|
||||||
|
|:const| :cons[t] create a variable as a constant
|
||||||
|:copen| :cope[n] open quickfix window
|
|:copen| :cope[n] open quickfix window
|
||||||
|:cprevious| :cp[revious] go to previous error
|
|:cprevious| :cp[revious] go to previous error
|
||||||
|:cpfile| :cpf[ile] go to last error in previous file
|
|:cpfile| :cpf[ile] go to last error in previous file
|
||||||
|
@ -266,9 +266,16 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
|||||||
after loading your .vimrc file. With this command it
|
after loading your .vimrc file. With this command it
|
||||||
can be done earlier.
|
can be done earlier.
|
||||||
|
|
||||||
Packages will be loaded only once. After this command
|
Packages will be loaded only once. Using
|
||||||
it won't happen again. When the optional ! is added
|
`:packloadall` a second time will have no effect.
|
||||||
this command will load packages even when done before.
|
When the optional ! is added this command will load
|
||||||
|
packages even when done before.
|
||||||
|
|
||||||
|
Note that when using `:packloadall` in the |vimrc|
|
||||||
|
file, the 'runtimepath' option is updated, and later
|
||||||
|
all plugins in 'runtimepath' will be loaded, which
|
||||||
|
means they are loaded again. Plugins are expected to
|
||||||
|
handle that.
|
||||||
|
|
||||||
An error only causes sourcing the script where it
|
An error only causes sourcing the script where it
|
||||||
happens to be aborted, further plugins will be loaded.
|
happens to be aborted, further plugins will be loaded.
|
||||||
|
@ -3108,7 +3108,7 @@ in your vimrc, and :set fdm=syntax. I suggest doing the latter via a
|
|||||||
modeline at the end of your LaTeX file: >
|
modeline at the end of your LaTeX file: >
|
||||||
% vim: fdm=syntax
|
% vim: fdm=syntax
|
||||||
If your system becomes too slow, then you might wish to look into >
|
If your system becomes too slow, then you might wish to look into >
|
||||||
https://vimhelp.appspot.com/vim_faq.txt.html#faq-29.7
|
https://vimhelp.org/vim_faq.txt.html#faq-29.7
|
||||||
<
|
<
|
||||||
*g:tex_nospell*
|
*g:tex_nospell*
|
||||||
Tex: No Spell Checking Wanted~
|
Tex: No Spell Checking Wanted~
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
" Language: shell (sh) Korn shell (ksh) bash (sh)
|
" Language: shell (sh) Korn shell (ksh) bash (sh)
|
||||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||||
" Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
|
" Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
|
||||||
" Last Change: Mar 26, 2019
|
" Last Change: Jun 16, 2019
|
||||||
" Version: 186
|
" Version: 188
|
||||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
|
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
|
||||||
" For options and settings, please use: :help ft-sh-syntax
|
" For options and settings, please use: :help ft-sh-syntax
|
||||||
" This file includes many ideas from Eric Brunet (eric.brunet@ens.fr)
|
" This file includes many ideas from Eric Brunet (eric.brunet@ens.fr)
|
||||||
@ -381,22 +381,23 @@ syn match shBQComment contained "#.\{-}\ze`" contains=@shCommentGroup
|
|||||||
|
|
||||||
" Here Documents: {{{1
|
" Here Documents: {{{1
|
||||||
" =========================================
|
" =========================================
|
||||||
|
" Note : shHereDoc0[137] only had shDblQuoteList contained
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc01 start="<<\s*\\\=\z([^ \t|>]\+\)" matchgroup=shHereDoc01 end="^\z1\s*$" contains=@shDblQuoteList
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc01 start="<<\s*\\\=\z([^ \t|>]\+\)" matchgroup=shHereDoc01 end="^\z1\s*$" contains=@shDblQuoteList
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc02 start="<<\s*\"\z([^"]\+\)\"" matchgroup=shHereDoc02 end="^\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc02 start="<<\s*\"\z([^"]\+\)\"" matchgroup=shHereDoc02 end="^\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc03 start="<<-\s*\z([^ \t|>]\+\)" matchgroup=shHereDoc03 end="^\s*\z1\s*$" contains=@shDblQuoteList
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc03 start="<<-\s*\z([^ \t|>]\+\)" matchgroup=shHereDoc03 end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc04 start="<<-\s*'\z([^']\+\)'" matchgroup=shHereDoc04 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc04 start="<<-\s*'\z([^']\+\)'" matchgroup=shHereDoc04 end="^\s*\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc05 start="<<\s*'\z([^']\+\)'" matchgroup=shHereDoc05 end="^\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc05 start="<<\s*'\z([^']\+\)'" matchgroup=shHereDoc05 end="^\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc06 start="<<-\s*\"\z([^"]\+\)\"" matchgroup=shHereDoc06 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc06 start="<<-\s*\"\z([^"]\+\)\"" matchgroup=shHereDoc06 end="^\s*\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc07 start="<<\s*\\\_$\_s*\z([^ \t|>]\+\)" matchgroup=shHereDoc07 end="^\z1\s*$" contains=@shDblQuoteList
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc07 start="<<\s*\\\_$\_s*\z([^ \t'"|>]\+\)" matchgroup=shHereDoc07 end="^\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc08 start="<<\s*\\\_$\_s*'\z([^\t|>]\+\)'" matchgroup=shHereDoc08 end="^\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc08 start="<<\s*\\\_$\_s*'\z([^\t|>]\+\)'" matchgroup=shHereDoc08 end="^\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc09 start="<<\s*\\\_$\_s*\"\z([^\t|>]\+\)\"" matchgroup=shHereDoc09 end="^\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc09 start="<<\s*\\\_$\_s*\"\z([^\t|>]\+\)\"" matchgroup=shHereDoc09 end="^\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc10 start="<<-\s*\\\_$\_s*\z([^ \t|>]\+\)" matchgroup=shHereDoc10 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc10 start="<<-\s*\\\_$\_s*\z([^ \t|>]\+\)" matchgroup=shHereDoc10 end="^\s*\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc11 start="<<-\s*\\\_$\_s*\\\z([^ \t|>]\+\)" matchgroup=shHereDoc11 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc11 start="<<-\s*\\\_$\_s*\\\z([^ \t|>]\+\)" matchgroup=shHereDoc11 end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc12 start="<<-\s*\\\_$\_s*'\z([^']\+\)'" matchgroup=shHereDoc12 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc12 start="<<-\s*\\\_$\_s*'\z([^']\+\)'" matchgroup=shHereDoc12 end="^\s*\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc13 start="<<-\s*\\\_$\_s*\"\z([^"]\+\)\"" matchgroup=shHereDoc13 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc13 start="<<-\s*\\\_$\_s*\"\z([^"]\+\)\"" matchgroup=shHereDoc13 end="^\s*\z1\s*$"
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<\\\z([^ \t|>]\+\)" matchgroup=shHereDoc14 end="^\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<\\\z([^ \t|>]\+\)" matchgroup=shHereDoc14 end="^\z1\s*$" contains=@shDblQuoteList
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<-\s*\\\z([^ \t|>]\+\)" matchgroup=shHereDoc15 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<-\s*\\\z([^ \t|>]\+\)" matchgroup=shHereDoc15 end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||||
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc16 start="<<-\s*\\\z([^ \t|>]\+\)" matchgroup=shHereDoc15 end="^\s*\z1\s*$"
|
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc16 start="<<-\s*\\\z([^ \t|>]\+\)" matchgroup=shHereDoc15 end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||||
|
|
||||||
" Here Strings: {{{1
|
" Here Strings: {{{1
|
||||||
" =============
|
" =============
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: TeX
|
" Language: TeX
|
||||||
" Maintainer: Charles E. Campbell <NdrchipO@ScampbellPfamily.AbizM>
|
" Maintainer: Charles E. Campbell <NdrchipO@ScampbellPfamily.AbizM>
|
||||||
" Last Change: Apr 01, 2019
|
" Last Change: May 14, 2019
|
||||||
" Version: 113
|
" Version: 114
|
||||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
|
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
|
||||||
"
|
"
|
||||||
" Notes: {{{1
|
" Notes: {{{1
|
||||||
@ -947,6 +947,7 @@ if has("conceal") && &enc == 'utf-8'
|
|||||||
call s:Greek('texGreek','\\eta\>' ,'η')
|
call s:Greek('texGreek','\\eta\>' ,'η')
|
||||||
call s:Greek('texGreek','\\theta\>' ,'θ')
|
call s:Greek('texGreek','\\theta\>' ,'θ')
|
||||||
call s:Greek('texGreek','\\vartheta\>' ,'ϑ')
|
call s:Greek('texGreek','\\vartheta\>' ,'ϑ')
|
||||||
|
call s:Greek('texGreek','\\iota\>' ,'ι')
|
||||||
call s:Greek('texGreek','\\kappa\>' ,'κ')
|
call s:Greek('texGreek','\\kappa\>' ,'κ')
|
||||||
call s:Greek('texGreek','\\lambda\>' ,'λ')
|
call s:Greek('texGreek','\\lambda\>' ,'λ')
|
||||||
call s:Greek('texGreek','\\mu\>' ,'μ')
|
call s:Greek('texGreek','\\mu\>' ,'μ')
|
||||||
@ -969,11 +970,12 @@ if has("conceal") && &enc == 'utf-8'
|
|||||||
call s:Greek('texGreek','\\Delta\>' ,'Δ')
|
call s:Greek('texGreek','\\Delta\>' ,'Δ')
|
||||||
call s:Greek('texGreek','\\Theta\>' ,'Θ')
|
call s:Greek('texGreek','\\Theta\>' ,'Θ')
|
||||||
call s:Greek('texGreek','\\Lambda\>' ,'Λ')
|
call s:Greek('texGreek','\\Lambda\>' ,'Λ')
|
||||||
call s:Greek('texGreek','\\Xi\>' ,'Χ')
|
call s:Greek('texGreek','\\Xi\>' ,'Ξ')
|
||||||
call s:Greek('texGreek','\\Pi\>' ,'Π')
|
call s:Greek('texGreek','\\Pi\>' ,'Π')
|
||||||
call s:Greek('texGreek','\\Sigma\>' ,'Σ')
|
call s:Greek('texGreek','\\Sigma\>' ,'Σ')
|
||||||
call s:Greek('texGreek','\\Upsilon\>' ,'Υ')
|
call s:Greek('texGreek','\\Upsilon\>' ,'Υ')
|
||||||
call s:Greek('texGreek','\\Phi\>' ,'Φ')
|
call s:Greek('texGreek','\\Phi\>' ,'Φ')
|
||||||
|
call s:Greek('texGreek','\\Chi\>' ,'Χ')
|
||||||
call s:Greek('texGreek','\\Psi\>' ,'Ψ')
|
call s:Greek('texGreek','\\Psi\>' ,'Ψ')
|
||||||
call s:Greek('texGreek','\\Omega\>' ,'Ω')
|
call s:Greek('texGreek','\\Omega\>' ,'Ω')
|
||||||
delfun s:Greek
|
delfun s:Greek
|
||||||
|
@ -142,7 +142,7 @@ syn match vimNumber "-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgro
|
|||||||
syn match vimNumber "\<0[xX]\x\+" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment
|
syn match vimNumber "\<0[xX]\x\+" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment
|
||||||
syn match vimNumber "\%(^\|\A\)\zs#\x\{6}" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment
|
syn match vimNumber "\%(^\|\A\)\zs#\x\{6}" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment
|
||||||
|
|
||||||
" All vimCommands are contained by vimIsCommands. {{{2
|
" All vimCommands are contained by vimIsCommand. {{{2
|
||||||
syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimEcho,vimIsCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
|
syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimEcho,vimIsCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
|
||||||
syn match vimIsCommand "\<\h\w*\>" contains=vimCommand
|
syn match vimIsCommand "\<\h\w*\>" contains=vimCommand
|
||||||
syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>"
|
syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>"
|
||||||
@ -177,7 +177,7 @@ syn keyword vimFTOption contained detect indent off on plugin
|
|||||||
|
|
||||||
" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2
|
" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2
|
||||||
" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking.
|
" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking.
|
||||||
syn cluster vimAugroupList contains=vimAugroup,vimIsCommand,vimCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimMap,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue,vimSetEqual,vimOption
|
syn cluster vimAugroupList contains=vimAugroup,vimIsCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimNotFunc,vimMap,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue,vimSetEqual,vimOption
|
||||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'a'
|
if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'a'
|
||||||
syn region vimAugroup fold matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList
|
syn region vimAugroup fold matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList
|
||||||
else
|
else
|
||||||
@ -194,7 +194,7 @@ syn keyword vimAugroupKey contained aug[roup]
|
|||||||
syn cluster vimOperGroup contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue
|
syn cluster vimOperGroup contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue
|
||||||
syn match vimOper "\%#=1\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile
|
syn match vimOper "\%#=1\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile
|
||||||
syn match vimOper "\(\<is\|\<isnot\)[?#]\{0,2}\>" skipwhite nextgroup=vimString,vimSpecFile
|
syn match vimOper "\(\<is\|\<isnot\)[?#]\{0,2}\>" skipwhite nextgroup=vimString,vimSpecFile
|
||||||
syn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile
|
syn match vimOper "||\|&&\|[-+.!]" skipwhite nextgroup=vimString,vimSpecFile
|
||||||
syn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup
|
syn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup
|
||||||
syn region vimOperParen matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
|
syn region vimOperParen matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
|
||||||
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
|
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
|
||||||
@ -231,7 +231,7 @@ syn match vimSpecFileMod "\(:[phtre]\)\+" contained
|
|||||||
|
|
||||||
" User-Specified Commands: {{{2
|
" User-Specified Commands: {{{2
|
||||||
" =======================
|
" =======================
|
||||||
syn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vimCtrlChar,vimEscapeBrace,vimFilter,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine
|
syn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vimCtrlChar,vimEscapeBrace,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine
|
||||||
syn keyword vimUserCommand contained com[mand]
|
syn keyword vimUserCommand contained com[mand]
|
||||||
syn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserAttrbError,vimUserCommand,@vimUserCmdList
|
syn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserAttrbError,vimUserCommand,@vimUserCmdList
|
||||||
syn match vimUserAttrbError contained "-\a\+\ze\s"
|
syn match vimUserAttrbError contained "-\a\+\ze\s"
|
||||||
@ -310,13 +310,14 @@ syn match vimSubstFlags contained "[&cegiIpr]\+"
|
|||||||
syn match vimString "[^(,]'[^']\{-}\zs'"
|
syn match vimString "[^(,]'[^']\{-}\zs'"
|
||||||
|
|
||||||
" Marks, Registers, Addresses, Filters: {{{2
|
" Marks, Registers, Addresses, Filters: {{{2
|
||||||
syn match vimMark "'[a-zA-Z0-9]\ze[-+,!]" nextgroup=vimOper,vimMarkNumber,vimSubst
|
syn match vimMark "'[a-zA-Z0-9]\ze[-+,!]" nextgroup=vimFilter,vimMarkNumber,vimSubst
|
||||||
syn match vimMark "'[<>]\ze[-+,!]" nextgroup=vimOper,vimMarkNumber,vimSubst
|
syn match vimMark "'[<>]\ze[-+,!]" nextgroup=vimFilter,vimMarkNumber,vimSubst
|
||||||
syn match vimMark ",\zs'[<>]\ze" nextgroup=vimOper,vimMarkNumber,vimSubst
|
syn match vimMark ",\zs'[<>]\ze" nextgroup=vimFilter,vimMarkNumber,vimSubst
|
||||||
syn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst
|
syn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimFilter,vimMarkNumber,vimSubst
|
||||||
syn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst
|
syn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimFilter,vimMarkNumber,vimSubst
|
||||||
syn match vimMarkNumber "[-+]\d\+" contained contains=vimOper nextgroup=vimSubst2
|
syn match vimMarkNumber "[-+]\d\+" contained contains=vimOper nextgroup=vimSubst2
|
||||||
syn match vimPlainMark contained "'[a-zA-Z0-9]"
|
syn match vimPlainMark contained "'[a-zA-Z0-9]"
|
||||||
|
syn match vimRange "[`'][a-zA-Z0-9],[`'][a-zA-Z0-9]" contains=vimMark skipwhite nextgroup=vimFilter
|
||||||
|
|
||||||
syn match vimRegister '[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]'
|
syn match vimRegister '[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]'
|
||||||
syn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]'
|
syn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]'
|
||||||
@ -327,8 +328,8 @@ syn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]'
|
|||||||
syn match vimAddress ",\zs[.$]" skipwhite nextgroup=vimSubst1
|
syn match vimAddress ",\zs[.$]" skipwhite nextgroup=vimSubst1
|
||||||
syn match vimAddress "%\ze\a" skipwhite nextgroup=vimString,vimSubst1
|
syn match vimAddress "%\ze\a" skipwhite nextgroup=vimString,vimSubst1
|
||||||
|
|
||||||
syn match vimFilter contained "^!.\{-}\(|\|$\)" contains=vimSpecFile
|
syn match vimFilter "^!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile
|
||||||
syn match vimFilter contained "\A!.\{-}\(|\|$\)"ms=s+1 contains=vimSpecFile,vimFunction,vimFuncName,vimOperParen
|
syn match vimFilter contained "!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile
|
||||||
|
|
||||||
" Complex repeats (:h complex-repeat) {{{2
|
" Complex repeats (:h complex-repeat) {{{2
|
||||||
syn match vimCmplxRepeat '[^a-zA-Z_/\\()]q[0-9a-zA-Z"]\>'lc=1
|
syn match vimCmplxRepeat '[^a-zA-Z_/\\()]q[0-9a-zA-Z"]\>'lc=1
|
||||||
@ -411,17 +412,18 @@ syn case match
|
|||||||
" ==========================
|
" ==========================
|
||||||
syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute
|
syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute
|
||||||
syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation
|
syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation
|
||||||
syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>"
|
|
||||||
|
|
||||||
" Errors And Warnings: {{{2
|
" Errors And Warnings: {{{2
|
||||||
" ====================
|
" ====================
|
||||||
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror")
|
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror")
|
||||||
syn match vimFunctionError "\s\zs[a-z0-9]\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank
|
syn match vimFunctionError "\s\zs[a-z0-9]\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank
|
||||||
" syn match vimFunctionError "\s\zs\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\d\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank
|
syn match vimFunctionError "\s\zs\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\d\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank
|
||||||
syn match vimElseIfErr "\<else\s\+if\>"
|
syn match vimElseIfErr "\<else\s\+if\>"
|
||||||
syn match vimBufnrWarn /\<bufnr\s*(\s*["']\.['"]\s*)/
|
syn match vimBufnrWarn /\<bufnr\s*(\s*["']\.['"]\s*)/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>" skipwhite nextgroup=vimOper,vimOperParen,vimVar,vimFunc,vimNotation
|
||||||
|
|
||||||
" Norm {{{2
|
" Norm {{{2
|
||||||
" ====
|
" ====
|
||||||
syn match vimNorm "\<norm\%[al]!\=" skipwhite nextgroup=vimNormCmds
|
syn match vimNorm "\<norm\%[al]!\=" skipwhite nextgroup=vimNormCmds
|
||||||
|
Loading…
Reference in New Issue
Block a user