mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
Update runtime files
This commit is contained in:
parent
cf34434b5e
commit
5ed11535e0
@ -2872,6 +2872,10 @@ fnamemodify({fname}, {mods}) *fnamemodify()*
|
||||
/home/user/vim/vim/src
|
||||
< If {mods} is empty or an unsupported modifier is used then
|
||||
{fname} is returned.
|
||||
When {fname} is empty then with {mods} ":h" returns ".", so
|
||||
that `:cd` can be used with it. This is different from
|
||||
expand('%:h') without a buffer name, which returns an empty
|
||||
string.
|
||||
Note: Environment variables don't work in {fname}, use
|
||||
|expand()| first then.
|
||||
|
||||
|
@ -697,7 +697,8 @@ Q Switch to "Ex" mode. This is a bit like typing ":"
|
||||
line-input editing commands (<Del> or <BS> to erase,
|
||||
CTRL-U to kill the whole line).
|
||||
Vim will enter this mode by default if it's invoked as
|
||||
"ex" on the command-line.
|
||||
"ex" on the command-line or the |-e| command line
|
||||
argument was used.
|
||||
Use the ":vi" command |:visual| to exit "Ex" mode.
|
||||
Note: In older versions of Vim "Q" formatted text,
|
||||
that is now done with |gq|. But if you use the
|
||||
@ -708,7 +709,7 @@ Q Switch to "Ex" mode. This is a bit like typing ":"
|
||||
gQ Switch to "Ex" mode like with "Q", but really behave
|
||||
like typing ":" commands after another. All command
|
||||
line editing, completion etc. is available.
|
||||
Use the ":vi" command |:visual| to exit "Ex" mode.
|
||||
Use the `:vi` command (`:visual`) to exit "Ex" mode.
|
||||
|
||||
==============================================================================
|
||||
7. The window contents *window-contents*
|
||||
|
@ -374,15 +374,17 @@ command: it is executed as if an (unrestricted) |autocommand| was invoked.
|
||||
<ScriptCmd> is like <Cmd> but sets the context to the script the mapping was
|
||||
defined in, for the duration of the command execution. This is especially
|
||||
useful for |Vim9| script. It also works to access an import, which is useful
|
||||
in a plugin using an autoload script: >
|
||||
in a plugin using a, possibly autoloaded, script: >
|
||||
vim9script
|
||||
import autoload 'implementation.vim' as impl
|
||||
nnoremap <F4> <ScriptCmd>impl.DoTheWork()<CR>
|
||||
|
||||
<
|
||||
No matter where <F4> is typed, the "impl" import will be found in the script
|
||||
context of where the mapping was defined. And since it's an autoload import,
|
||||
the "implementation.vim" script will only be loaded once <F4> is typed, not
|
||||
when the mapping is defined.
|
||||
context of where the mapping was defined. When it's an autoload import, as in
|
||||
the example, the "implementation.vim" script will only be loaded once <F4> is
|
||||
typed, not when the mapping is defined.
|
||||
|
||||
Without <ScriptCmd> using "s:impl" would result in "E121: Undefined variable".
|
||||
|
||||
Note:
|
||||
- Because <Cmd> and <ScriptCmd> avoid mode-changes it does not trigger
|
||||
|
@ -1677,7 +1677,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
feature is included}
|
||||
This option is a list of comma-separated names.
|
||||
Note: if one of the items is "exclude:", then you can't add an item
|
||||
after that. Therefore do append an item with += but use ^= to
|
||||
after that. Therefore do not append an item with += but use ^= to
|
||||
prepend, e.g.: >
|
||||
set clipboard^=unnamed
|
||||
< These names are recognized:
|
||||
|
@ -7881,6 +7881,7 @@ if_sniff.txt if_sniff.txt /*if_sniff.txt*
|
||||
if_tcl.txt if_tcl.txt /*if_tcl.txt*
|
||||
ignore-errors eval.txt /*ignore-errors*
|
||||
ignore-timestamp editing.txt /*ignore-timestamp*
|
||||
import-legacy vim9.txt /*import-legacy*
|
||||
improved-autocmds-5.4 version5.txt /*improved-autocmds-5.4*
|
||||
improved-quickfix version5.txt /*improved-quickfix*
|
||||
improved-sessions version5.txt /*improved-sessions*
|
||||
@ -8070,6 +8071,7 @@ lcs-space options.txt /*lcs-space*
|
||||
lcs-tab options.txt /*lcs-tab*
|
||||
lcs-trail options.txt /*lcs-trail*
|
||||
left-right-motions motion.txt /*left-right-motions*
|
||||
legacy-import vim9.txt /*legacy-import*
|
||||
len() builtin.txt /*len()*
|
||||
less various.txt /*less*
|
||||
letter print.txt /*letter*
|
||||
|
@ -633,10 +633,13 @@ When the GUI is running 't_Co' is set to 16777216.
|
||||
*termcap-cursor-shape* *termcap-cursor-color*
|
||||
When Vim enters Insert mode the 't_SI' escape sequence is sent. When Vim
|
||||
enters Replace mode the 't_SR' escape sequence is sent if it is set, otherwise
|
||||
't_SI' is sent. When leaving Insert mode or Replace mode 't_EI' is used. This
|
||||
can be used to change the shape or color of the cursor in Insert or Replace
|
||||
mode. These are not standard termcap/terminfo entries, you need to set them
|
||||
yourself.
|
||||
't_SI' is sent. When leaving Insert mode or Replace mode 't_EI' is used.
|
||||
Note: When 't_EI' is not set then 't_SI' and 't_SR' will not be sent. And
|
||||
when 't_SI' or 't_SR' is not set then 't_EI' is sent only once.
|
||||
|
||||
This can be used to change the shape or color of the cursor in Insert or
|
||||
Replace mode. These are not standard termcap/terminfo entries, you need to set
|
||||
them yourself.
|
||||
Example for an xterm, this changes the color of the cursor: >
|
||||
if &term =~ "xterm"
|
||||
let &t_SI = "\<Esc>]12;purple\x7"
|
||||
|
@ -68,6 +68,12 @@ Further Vim9 improvements, possibly after launch:
|
||||
- Implement as part of an expression: ++expr, --expr, expr++, expr--.
|
||||
|
||||
Update list of features to vote on:
|
||||
- Remove Athena item (won't happen)
|
||||
- Remove "add open mode" (won't happen)
|
||||
- Remove "editing of a hidden buffer" (done)
|
||||
- Change "add IDE features" to "improve terminal debugger"
|
||||
- Change "diff/merge capability for CVS" to "CVS and git"
|
||||
- Remove "pre-compile them" from "improve the performance of Vim scripts"
|
||||
- multiple cursors
|
||||
- built-in LSP support
|
||||
- virtual text, using text properties
|
||||
@ -117,8 +123,6 @@ Text properties:
|
||||
if the priority is above a certain value? (#7392)
|
||||
Combining text property with 'cursorline' does not always work (Billie
|
||||
Cleek, #5533)
|
||||
- "C" works OK. "dd" fails to delete text property in a buffer with a single
|
||||
line.
|
||||
- Add text property that shifts text to make room for annotation (e.g.
|
||||
variable type). Like the opposite of conceal. Requires fixing the cursor
|
||||
positioning and mouse clicks as with conceal mode.
|
||||
@ -200,9 +204,6 @@ Terminal emulator window:
|
||||
Patches considered for including:
|
||||
- Add "-n" option to xxd. #10599 needs a test
|
||||
- allow for nesting of timeout, sketch in #10595
|
||||
- Patch to implement the vimtutor with a plugin: #6414
|
||||
Was originally written by Felipe Morales.
|
||||
- Patch to make fillchars global-local. (#5206)
|
||||
|
||||
Autoconf: must use autoconf 2.69, later version generates lots of warnings
|
||||
- try using autoconf 2.71 and fix all "obsolete" warnings
|
||||
|
@ -145,6 +145,17 @@ Do not start a comment with #{, it looks like the legacy dictionary literal
|
||||
and produces an error where this might be confusing. #{{ or #{{{ are OK,
|
||||
these can be used to start a fold.
|
||||
|
||||
When starting to read a script file Vim doesn't know it is |Vim9| script until
|
||||
the `vim9script` command is found. Until that point you would need to use
|
||||
legacy comments: >
|
||||
" legacy comment
|
||||
vim9script
|
||||
# Vim9 comment
|
||||
|
||||
That looks ugly, better put `vim9script` in the very first line: >
|
||||
vim9script
|
||||
# Vim9 comment
|
||||
|
||||
In legacy Vim script # is also used for the alternate file name. In Vim9
|
||||
script you need to use %% instead. Instead of ## use %%% (stands for all
|
||||
arguments).
|
||||
@ -1687,21 +1698,34 @@ be exported. {not implemented yet: class, interface}
|
||||
Import ~
|
||||
*:import* *:imp* *E1094* *E1047* *E1262*
|
||||
*E1048* *E1049* *E1053* *E1071* *E1236*
|
||||
The exported items can be imported in another Vim9 script: >
|
||||
The exported items can be imported in another script. The import syntax has
|
||||
two forms. The simple form: >
|
||||
import {filename}
|
||||
<
|
||||
Where {filename} is an expression that must evaluate to a string. In this
|
||||
form the filename should end in ".vim" and the portion before ".vim" will
|
||||
become the script local name of the namespace. For example: >
|
||||
import "myscript.vim"
|
||||
|
||||
This makes each item available as "myscript.item".
|
||||
<
|
||||
This makes each exported item in "myscript.vim" available as "myscript.item".
|
||||
*:import-as* *E1257* *E1261*
|
||||
In case the name is long or ambiguous, another name can be specified: >
|
||||
import "thatscript.vim" as that
|
||||
In case the name is long or ambiguous, this form can be used to specify
|
||||
another name: >
|
||||
import {longfilename} as {name}
|
||||
<
|
||||
In this form {name} becomes a specific script local name for the imported
|
||||
namespace. Therefore {name} must consist of letters, digits and '_', like
|
||||
|internal-variables|. The {longfilename} expression must evaluate to any
|
||||
filename. For example: >
|
||||
import "thatscript.vim.v2" as that
|
||||
< *E1060* *E1258* *E1259* *E1260*
|
||||
Then you can use "that.EXPORTED_CONST", "that.someValue", etc. You are free
|
||||
to choose the name "that". Use something that will be recognized as referring
|
||||
to the imported script. Avoid command names, command modifiers and builtin
|
||||
function names, because the name will shadow them.
|
||||
If the name starts with a capital letter it can also shadow global user
|
||||
commands and functions. Also, you cannot use the name for something else in
|
||||
the script, such as a function or variable name.
|
||||
Then you can use "that.item", etc. You are free to choose the name "that".
|
||||
Use something that will be recognized as referring to the imported script.
|
||||
Avoid command names, command modifiers and builtin function names, because the
|
||||
name will shadow them. Better not start the name starts with a capital
|
||||
letter, since it can then also shadow global user commands and functions.
|
||||
Also, you cannot use the name for something else in the script, such as a
|
||||
function or variable name.
|
||||
|
||||
In case the dot in the name is undesired, a local reference can be made for a
|
||||
function: >
|
||||
@ -1714,15 +1738,6 @@ This does not work for variables, since the value would be copied once and
|
||||
when changing the variable the copy will change, not the original variable.
|
||||
You will need to use the full name, with the dot.
|
||||
|
||||
The full syntax of the command is:
|
||||
import {filename} [as {name}]
|
||||
Where {filename} is an expression that must evaluate to a string. Without the
|
||||
"as {name}" part it must end in ".vim". {name} must consist of letters,
|
||||
digits and '_', like |internal-variables|.
|
||||
|
||||
`:import` can also be used in legacy Vim script. The imported items still
|
||||
become script-local, even when the "s:" prefix is not given.
|
||||
|
||||
`:import` can not be used in a function. Imported items are intended to exist
|
||||
at the script level and only imported once.
|
||||
|
||||
@ -1752,14 +1767,38 @@ line, there can be no line break: >
|
||||
echo that
|
||||
.name # Error!
|
||||
|
||||
To refer to a function in an imported script in a mapping, |<SID>| can be
|
||||
used: >
|
||||
When you've imported a function from one script into a vim9 script you can
|
||||
refer to the imported function in a mapping by prefixing it with |<SID>|: >
|
||||
noremap <silent> ,a :call <SID>name.Function()<CR>
|
||||
|
||||
When the mapping is defined "<SID>name." will be replaced with <SNR> and the
|
||||
script ID of the imported script.
|
||||
An even simpler solution is using |<ScriptCmd>|: >
|
||||
noremap ,a <ScriptCmd>name.Function()<CR>
|
||||
|
||||
Note that this does not work for variables, only for functions.
|
||||
|
||||
*import-legacy* *legacy-import*
|
||||
`:import` can also be used in legacy Vim script. The imported namespace still
|
||||
becomes script-local, even when the "s:" prefix is not given. For example: >
|
||||
import "myfile.vim"
|
||||
call s:myfile.MyFunc()
|
||||
|
||||
And using the "as name" form: >
|
||||
import "otherfile.vim9script" as that
|
||||
call s:that.OtherFunc()
|
||||
|
||||
However, the namespace cannot be resolved on it's own: >
|
||||
import "that.vim"
|
||||
echo s:that
|
||||
" ERROR: E1060: Expected dot after name: s:that
|
||||
<
|
||||
This also affects the use of |<SID>| in the legacy mapping context. Since
|
||||
|<SID>| is only a valid prefix for a function and NOT for a namespace, you
|
||||
cannot use it
|
||||
to scope a function in a script local namespace. Instead of prefixing the
|
||||
function with |<SID>| you should use|<ScriptCmd>|. For example: >
|
||||
noremap ,a <ScriptCmd>:call s:that.OtherFunc()<CR>
|
||||
<
|
||||
*:import-cycle*
|
||||
The `import` commands are executed when encountered. If script A imports
|
||||
|
@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2022 Jun 03
|
||||
" Last Change: 2022 Jul 5
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
|
@ -16,7 +16,7 @@ set cpo&vim
|
||||
|
||||
if !exists('*VimFtpluginUndo')
|
||||
func VimFtpluginUndo()
|
||||
setl fo< isk< com< tw< commentstring<
|
||||
setl fo< isk< com< tw< commentstring< include< define<
|
||||
if exists('b:did_add_maps')
|
||||
silent! nunmap <buffer> [[
|
||||
silent! vunmap <buffer> [[
|
||||
@ -59,6 +59,11 @@ else
|
||||
setlocal commentstring=\"%s
|
||||
endif
|
||||
|
||||
" set 'include' to recognize import commands
|
||||
setlocal include=\\v^\\s*import\\s*(autoload)?
|
||||
|
||||
" set 'define' to recognize export commands
|
||||
setlocal define=\\v^\\s*export\\s*(def\|const\|var\|final)
|
||||
|
||||
" Format comments to be up to 78 characters long
|
||||
if &tw == 0
|
||||
|
@ -1,10 +1,15 @@
|
||||
" Menu Translations: Simplified Chinese
|
||||
" Maintainer: Shun Bai <baishunde@gmail.com>
|
||||
" Previous Maintainer: Yuheng Xie <elephant@linux.net.cn>
|
||||
" Last Change: 2022 Feb 19
|
||||
" Maintainer: Ada (Haowen) Yu <me@yuhaowen.com>
|
||||
" Previous Maintainer: Shun Bai <baishunde@gmail.com>, Yuheng Xie <elephant@linux.net.cn>
|
||||
" Last Change: 2022 July 6
|
||||
" Original translations
|
||||
"
|
||||
" Generated with the scripts from:
|
||||
"
|
||||
" https://github.com/adaext/vim-menutrans-helper
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
|
||||
if exists("did_menu_trans")
|
||||
finish
|
||||
endif
|
||||
@ -68,6 +73,7 @@ menutrans &Find\.\.\. 查找(&F)\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. 查找和替换(&L)\.\.\.
|
||||
menutrans &Find<Tab>/ 查找(&F)<Tab>/
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s 查找和替换(&L)<Tab>:%s
|
||||
menutrans Find\ and\ Rep&lace<Tab>:s 查找和替换(&L)<Tab>:s
|
||||
menutrans Settings\ &Window 设置窗口(&W)
|
||||
menutrans Startup\ &Settings 启动设置(&S)
|
||||
|
||||
@ -342,9 +348,15 @@ menutrans On/Off\ for\ &This\ File 只对这个文件开/关(&T)
|
||||
menutrans Co&lor\ Test 色彩测试(&L)
|
||||
menutrans &Highlight\ Test 高亮测试(&H)
|
||||
menutrans &Convert\ to\ HTML 转换成\ HTML(&C)
|
||||
|
||||
" From synmenu.vim
|
||||
menutrans Set\ '&syntax'\ Only 只设置\ 'syntax'(&S)
|
||||
menutrans Set\ '&filetype'\ Too 也设置\ 'filetype'(&F)
|
||||
menutrans Oracle\ config Oracle\ 配置文件
|
||||
menutrans Vim\ help\ file Vim\ 帮助文件
|
||||
menutrans Vim\ script Vim\ 脚本
|
||||
menutrans Viminfo\ file Vim\ 信息文件
|
||||
menutrans Virata\ config Virata\ 配置文件
|
||||
" }}}
|
||||
|
||||
" Netrw menu {{{1
|
||||
@ -447,6 +459,107 @@ menutrans Set\ '&filetype'\ Too 也设置\ 'filetype'(&F)
|
||||
" endif
|
||||
" }}}
|
||||
|
||||
" Shellmenu menu
|
||||
" Shellmenu menuitems {{{1
|
||||
" From shellmenu.vim
|
||||
menutrans Stmts 语句
|
||||
menutrans Test 测试
|
||||
menutrans existence 存在
|
||||
menutrans existence\ -\ file 存在\ -\ 文件
|
||||
menutrans existence\ -\ file\ (not\ empty) 存在\ -\ 文件(非空)
|
||||
menutrans existence\ -\ directory 存在\ -\ 目录
|
||||
menutrans existence\ -\ executable 存在\ -\ 可执行
|
||||
menutrans existence\ -\ readable 存在\ -\ 可读
|
||||
menutrans existence\ -\ writable 存在\ -\ 可写
|
||||
menutrans String\ is\ empty 字符串为空
|
||||
menutrans String\ is\ not\ empty 字符串非空
|
||||
menutrans Strings\ is\ equal 字符串值相等
|
||||
menutrans Strings\ is\ not\ equal 字符串值不相等
|
||||
menutrans Values\ is\ greater\ than 值大于
|
||||
menutrans Values\ is\ greater\ equal 值大于等于
|
||||
menutrans Values\ is\ equal 值相等
|
||||
menutrans Values\ is\ not\ equal 值不相等
|
||||
menutrans Values\ is\ less\ than 值小于
|
||||
menutrans Values\ is\ less\ equal 值小于等于
|
||||
menutrans ParmSub 参数替换
|
||||
menutrans Substitute\ word\ if\ parm\ not\ set 如果参数没设置就替换该词
|
||||
menutrans Set\ parm\ to\ word\ if\ not\ set 参数未设置就设为该词
|
||||
menutrans Substitute\ word\ if\ parm\ set\ else\ nothing 如果参数设置就替换该词,否则什么都不做
|
||||
menutrans If\ parm\ not\ set\ print\ word\ and\ exit 如果参数没有设置就打印该词并退出
|
||||
menutrans SpShVars Shell\ 特殊变量
|
||||
menutrans Number\ of\ positional\ parameters 位置参数的数目
|
||||
menutrans All\ positional\ parameters\ (quoted\ spaces) 所有位置参数(quoted\ spaces)
|
||||
menutrans All\ positional\ parameters\ (unquoted\ spaces) 所有位置参数(unquoted\ spaces)
|
||||
menutrans Flags\ set 设置标志
|
||||
menutrans Return\ code\ of\ last\ command 返回前一条命令的代码
|
||||
menutrans Process\ number\ of\ this\ shell shell\ 自身进程号
|
||||
menutrans Process\ number\ of\ last\ background\ command 前一条后台命令的进程号
|
||||
menutrans Environ 环境变量
|
||||
menutrans exit\ when\ command\ returns\ non-zero\ exit\ code 当命令返回非零代码时退出
|
||||
menutrans Disable\ file\ name\ generation 禁用文件名生成
|
||||
menutrans Read\ commands\ but\ do\ not\ execute\ them 读命令但是不要执行
|
||||
menutrans Exit\ after\ reading\ and\ executing\ one\ command 读并执行一个命令之后退出
|
||||
menutrans Treat\ unset\ variables\ as\ an\ error\ when\ substituting 替换时把未设置命令视为错误
|
||||
menutrans Print\ shell\ input\ lines\ as\ they\ are\ read 读\ shell\ 输入行的时候打印
|
||||
menutrans Print\ commands\ and\ their\ arguments\ as\ they\ are\ executed 被执行时打印命令和参数
|
||||
" }}}
|
||||
|
||||
" termdebug menu
|
||||
" termdebug menuitems {{{1
|
||||
" From termdebug.vim
|
||||
menutrans Set\ breakpoint 设置断点
|
||||
menutrans Clear\ breakpoint 清除断点
|
||||
menutrans Run\ until 运行到
|
||||
menutrans Evaluate 求值
|
||||
menutrans WinBar 工具条
|
||||
menutrans Step 单步
|
||||
menutrans Next 下一个
|
||||
menutrans Finish 结束
|
||||
menutrans Cont 继续
|
||||
menutrans Stop 停止
|
||||
" }}}
|
||||
|
||||
" debchangelog menu
|
||||
" debchangelog menuitems {{{1
|
||||
" From debchangelog.vim
|
||||
menutrans &Changelog 更新日志(&C)
|
||||
menutrans &New\ Version 新版本(&N)
|
||||
menutrans &Add\ Entry 添加条目(&A)
|
||||
menutrans &Close\ Bug 关闭\ Bug(&C)
|
||||
menutrans Set\ &Distribution 设置发行版(&D)
|
||||
menutrans &unstable 不稳定(&U)
|
||||
menutrans Set\ &Urgency 设置紧急(&U)
|
||||
menutrans &low 低(&L)
|
||||
menutrans &medium 中(&M)
|
||||
menutrans &high 高(&H)
|
||||
menutrans U&nfinalise 未完成(&N)
|
||||
menutrans &Finalise 完成(&F)
|
||||
" }}}
|
||||
|
||||
" ada menu
|
||||
" ada menuitems {{{1
|
||||
" From ada.vim
|
||||
menutrans Tag 标签
|
||||
menutrans List 列表
|
||||
menutrans Jump 跳转
|
||||
menutrans Create\ File 创建文件
|
||||
menutrans Create\ Dir 创建目录
|
||||
menutrans Highlight 高亮
|
||||
menutrans Toggle\ Space\ Errors 切换空格错误
|
||||
menutrans Toggle\ Lines\ Errors 切换行错误
|
||||
menutrans Toggle\ Rainbow\ Color 切换彩虹颜色
|
||||
menutrans Toggle\ Standard\ Types 切换标准类型
|
||||
" }}}
|
||||
|
||||
" gnat menu
|
||||
" gnat menuitems {{{1
|
||||
" From gnat.vim
|
||||
menutrans Build 构建
|
||||
menutrans Pretty\ Print 重新格式化代码
|
||||
menutrans Find 查找
|
||||
menutrans Set\ Projectfile\.\.\. 设置项目文件\.\.\.
|
||||
" }}}
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
" Language: fetchmail(1) RC File
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2022 Jun 30
|
||||
" Latest Revision: 2022 Jul 02
|
||||
|
||||
" Version 6.4.3
|
||||
|
||||
@ -62,7 +62,7 @@ syn match fetchmailNoise display '[:;,]'
|
||||
syn keyword fetchmailSet nextgroup=fetchmailOptions skipwhite skipnl set
|
||||
|
||||
syn keyword fetchmailOptions daemon postmaster bouncemail spambounce
|
||||
\ softbounce logfile idfile syslog properties
|
||||
\ softbounce logfile pidfile idfile syslog properties
|
||||
syn match fetchmailOptions '\<no\_s\+\(bouncemail\|spambounce\|softbounce\|syslog\)'
|
||||
|
||||
hi def link fetchmailComment Comment
|
||||
|
@ -2,8 +2,8 @@
|
||||
" Language: shell (sh) Korn shell (ksh) bash (sh)
|
||||
" Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
||||
" Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
|
||||
" Last Change: Jun 09, 2022
|
||||
" Version: 201
|
||||
" Last Change: Jun 29, 2022
|
||||
" Version: 202
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
|
||||
" For options and settings, please use: :help ft-sh-syntax
|
||||
" This file includes many ideas from Eric Brunet (eric.brunet@ens.fr) and heredoc fixes from Felipe Contreras
|
||||
@ -350,7 +350,7 @@ if exists("b:is_bash")
|
||||
syn cluster shCommandSubList add=bashSpecialVariables,bashStatement
|
||||
syn cluster shCaseList add=bashAdminStatement,bashStatement
|
||||
syn keyword bashSpecialVariables contained auto_resume BASH BASH_ALIASES BASH_ALIASES BASH_ARGC BASH_ARGC BASH_ARGV BASH_ARGV BASH_CMDS BASH_CMDS BASH_COMMAND BASH_COMMAND BASH_ENV BASH_EXECUTION_STRING BASH_EXECUTION_STRING BASH_LINENO BASH_LINENO BASHOPTS BASHOPTS BASHPID BASHPID BASH_REMATCH BASH_REMATCH BASH_SOURCE BASH_SOURCE BASH_SUBSHELL BASH_SUBSHELL BASH_VERSINFO BASH_VERSION BASH_XTRACEFD BASH_XTRACEFD CDPATH COLUMNS COLUMNS COMP_CWORD COMP_CWORD COMP_KEY COMP_KEY COMP_LINE COMP_LINE COMP_POINT COMP_POINT COMPREPLY COMPREPLY COMP_TYPE COMP_TYPE COMP_WORDBREAKS COMP_WORDBREAKS COMP_WORDS COMP_WORDS COPROC COPROC DIRSTACK EMACS EMACS ENV ENV EUID FCEDIT FIGNORE FUNCNAME FUNCNAME FUNCNEST FUNCNEST GLOBIGNORE GROUPS histchars HISTCMD HISTCONTROL HISTFILE HISTFILESIZE HISTIGNORE HISTSIZE HISTTIMEFORMAT HISTTIMEFORMAT HOME HOSTFILE HOSTNAME HOSTTYPE IFS IGNOREEOF INPUTRC LANG LC_ALL LC_COLLATE LC_CTYPE LC_CTYPE LC_MESSAGES LC_NUMERIC LC_NUMERIC LINENO LINES LINES MACHTYPE MAIL MAILCHECK MAILPATH MAPFILE MAPFILE OLDPWD OPTARG OPTERR OPTIND OSTYPE PATH PIPESTATUS POSIXLY_CORRECT POSIXLY_CORRECT PPID PROMPT_COMMAND PS1 PS2 PS3 PS4 PWD RANDOM READLINE_LINE READLINE_LINE READLINE_POINT READLINE_POINT REPLY SECONDS SHELL SHELL SHELLOPTS SHLVL TIMEFORMAT TIMEOUT TMPDIR TMPDIR UID
|
||||
syn keyword bashStatement chmod clear complete du egrep expr fgrep find gnufind gnugrep grep less ls mkdir mv rm rmdir rpm sed sleep sort strip tail
|
||||
syn keyword bashStatement chmod clear complete du egrep expr fgrep find gnufind gnugrep grep head less ls mkdir mv rm rmdir rpm sed sleep sort strip tail
|
||||
syn keyword bashAdminStatement daemon killall killproc nice reload restart start status stop
|
||||
syn keyword bashStatement command compgen
|
||||
endif
|
||||
@ -359,7 +359,7 @@ if exists("b:is_kornshell") || exists("b:is_posix")
|
||||
syn cluster shCommandSubList add=kshSpecialVariables,kshStatement
|
||||
syn cluster shCaseList add=kshStatement
|
||||
syn keyword kshSpecialVariables contained CDPATH COLUMNS EDITOR ENV ERRNO FCEDIT FPATH HISTFILE HISTSIZE HOME IFS LINENO LINES MAIL MAILCHECK MAILPATH OLDPWD OPTARG OPTIND PATH PPID PS1 PS2 PS3 PS4 PWD RANDOM REPLY SECONDS SHELL TMOUT VISUAL
|
||||
syn keyword kshStatement cat chmod clear cp du egrep expr fgrep find grep killall less ls mkdir mv nice printenv rm rmdir sed sort strip stty tail tput
|
||||
syn keyword kshStatement cat chmod clear cp du egrep expr fgrep find grep head killall less ls mkdir mv nice printenv rm rmdir sed sort strip stty tail tput
|
||||
syn keyword kshStatement command setgroups setsenv
|
||||
endif
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim 8.2 script
|
||||
" Language: Vim 9.0 script
|
||||
" Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
||||
" Last Change: Jun 16, 20222
|
||||
" Version: 8.2-46
|
||||
" Last Change: July 01, 2022
|
||||
" Version: 9.0-01
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
@ -49,8 +49,8 @@ syn keyword vimOption contained invai invaltkeymap invar invarabicshape invasd i
|
||||
syn keyword vimOption contained invakm invanti invarab invari invautochdir invautoshelldir invaw invballooneval invbevalterm invbk invbreakindent invcf invcindent invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph inved invemo inveol invesckeys invexpandtab invfic invfixeol invfoldenable invgd invhid invhkmap invhls invicon invimc invimdisable invinfercase invjoinspaces invlangremap invlinebreak invlnr invlrm invmacatsui invml invmodeline invmodified
|
||||
|
||||
" termcap codes (which can also be set) {{{2
|
||||
syn keyword vimOption contained t_8b t_8u t_AF t_AL t_bc t_BE t_ce t_cl t_Co t_Cs t_CV t_db t_DL t_EI t_F2 t_F4 t_F6 t_F8 t_fd t_fs t_IE t_k1 t_k2 t_K3 t_K4 t_K5 t_K6 t_K7 t_K8 t_K9 t_kb t_KB t_kd t_KD t_KE t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_PE t_PS t_RB t_RC t_RF t_Ri t_RI t_RS t_RT t_RV t_Sb t_SC t_se t_Sf t_SH t_Si t_SI t_so t_sr t_SR t_ST t_te t_Te t_TE t_ti t_TI t_ts t_Ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_VS t_WP t_WS t_xn t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_8f t_AB t_al t_AU t_BD t_cd t_Ce t_cm t_cs t_CS t_da t_dl t_EC t_F1 t_F3 t_F5 t_F7 t_F9 t_fe t_GP t_IS t_K1 t_k3 t_k4 t_k5 t_k6 t_k7 t_k8 t_k9 t_KA t_kB t_KC t_kD t_ke t_KF
|
||||
syn keyword vimOption contained t_8b t_8u t_AF t_AL t_bc t_BE t_ce t_cl t_Co t_Cs t_CV t_db t_DL t_Ds t_EI t_F2 t_F4 t_F6 t_F8 t_fd t_fs t_IE t_k1 t_k2 t_K3 t_K4 t_K5 t_K6 t_K7 t_K8 t_K9 t_kb t_KB t_kd t_KD t_KE t_KG t_KH t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_PE t_PS t_RB t_RC t_RF t_Ri t_RI t_RS t_RT t_RV t_Sb t_SC t_se t_Sf t_SH t_Si t_SI t_so t_sr t_SR t_ST t_te t_Te t_TE t_ti t_TI t_ts t_Ts t_u7 t_ue t_us t_Us t_ut t_vb t_ve t_vi t_vs t_VS t_WP t_WS t_xn t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_8f t_AB t_al t_AU t_BD t_cd t_Ce t_cm t_cs t_CS t_da t_dl t_ds t_EC t_F1 t_F3 t_F5 t_F7 t_F9 t_fe t_GP t_IS t_K1 t_k3 t_k4 t_k5 t_k6 t_k7 t_k8 t_k9 t_KA t_kB t_KC t_kD t_ke t_KF t_kh t_kI
|
||||
syn match vimOption contained "t_%1"
|
||||
syn match vimOption contained "t_#2"
|
||||
syn match vimOption contained "t_#4"
|
||||
@ -400,7 +400,7 @@ syn match vimSetMod contained "&vim\=\|[!&?<]\|all&"
|
||||
" Let: {{{2
|
||||
" ===
|
||||
syn keyword vimLet let unl[et] skipwhite nextgroup=vimVar,vimFuncVar,vimLetHereDoc
|
||||
VimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s\+\%(trim\%(\s\+eval\)\=\|eval\%(\s\+trim\)\=\)\=\s*\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1\s*$'
|
||||
VimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s\+\%(trim\|eval\>\)\=\s*\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1\s*$'
|
||||
|
||||
" Abbreviations: {{{2
|
||||
" =============
|
||||
|
Loading…
x
Reference in New Issue
Block a user