mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
0185625c04
commit
65821cc1b9
16
runtime/compiler/eslint.vim
Normal file
16
runtime/compiler/eslint.vim
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: ESLint for JavaScript
|
||||||
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
|
" Last Change: 2020 May 17
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "eslint"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=eslint\ --format\ compact
|
||||||
|
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
|
16
runtime/compiler/standard.vim
Normal file
16
runtime/compiler/standard.vim
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Standard for JavaScript
|
||||||
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
|
" Last Change: 2020 May 17
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "standard"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=standard
|
||||||
|
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
|
@ -538,6 +538,8 @@ adict.
|
|||||||
Weeding out entries from a Dictionary can be done with |filter()|: >
|
Weeding out entries from a Dictionary can be done with |filter()|: >
|
||||||
:call filter(dict, 'v:val =~ "x"')
|
:call filter(dict, 'v:val =~ "x"')
|
||||||
This removes all entries from "dict" with a value not matching 'x'.
|
This removes all entries from "dict" with a value not matching 'x'.
|
||||||
|
This can also be used to remove all entries: >
|
||||||
|
call filter(dict, 0)
|
||||||
|
|
||||||
|
|
||||||
Dictionary function ~
|
Dictionary function ~
|
||||||
@ -2521,6 +2523,7 @@ win_splitmove({nr}, {target} [, {options}])
|
|||||||
Number move window {nr} to split of {target}
|
Number move window {nr} to split of {target}
|
||||||
winbufnr({nr}) Number buffer number of window {nr}
|
winbufnr({nr}) Number buffer number of window {nr}
|
||||||
wincol() Number window column of the cursor
|
wincol() Number window column of the cursor
|
||||||
|
windowsversion() String MS-Windows OS version
|
||||||
winheight({nr}) Number height of window {nr}
|
winheight({nr}) Number height of window {nr}
|
||||||
winlayout([{tabnr}]) List layout of windows in tab {tabnr}
|
winlayout([{tabnr}]) List layout of windows in tab {tabnr}
|
||||||
winline() Number window line of the cursor
|
winline() Number window line of the cursor
|
||||||
|
@ -819,7 +819,7 @@ tag char note action in Normal mode ~
|
|||||||
|zD| zD delete folds recursively
|
|zD| zD delete folds recursively
|
||||||
|zE| zE eliminate all folds
|
|zE| zE eliminate all folds
|
||||||
|zF| zF create a fold for N lines
|
|zF| zF create a fold for N lines
|
||||||
|zG| zG mark word as good spelled word
|
|zG| zG temporarily mark word as good spelled word
|
||||||
|zH| zH when 'wrap' off scroll half a screenwidth
|
|zH| zH when 'wrap' off scroll half a screenwidth
|
||||||
to the right
|
to the right
|
||||||
|zL| zL when 'wrap' off scroll half a screenwidth
|
|zL| zL when 'wrap' off scroll half a screenwidth
|
||||||
@ -828,7 +828,7 @@ tag char note action in Normal mode ~
|
|||||||
|zN| zN set 'foldenable'
|
|zN| zN set 'foldenable'
|
||||||
|zO| zO open folds recursively
|
|zO| zO open folds recursively
|
||||||
|zR| zR set 'foldlevel' to the deepest fold
|
|zR| zR set 'foldlevel' to the deepest fold
|
||||||
|zW| zW mark word as wrong (bad) spelled word
|
|zW| zW temporarily mark word as bad spelled word
|
||||||
|zX| zX re-apply 'foldlevel'
|
|zX| zX re-apply 'foldlevel'
|
||||||
|z^| z^ cursor on line N (default line above
|
|z^| z^ cursor on line N (default line above
|
||||||
window), otherwise like "z-"
|
window), otherwise like "z-"
|
||||||
@ -840,7 +840,7 @@ tag char note action in Normal mode ~
|
|||||||
position the cursor at the end (right side)
|
position the cursor at the end (right side)
|
||||||
of the screen
|
of the screen
|
||||||
|zf| zf{motion} create a fold for Nmove text
|
|zf| zf{motion} create a fold for Nmove text
|
||||||
|zg| zg mark word as good spelled word
|
|zg| zg permanently mark word as good spelled word
|
||||||
|zh| zh when 'wrap' off scroll screen N characters
|
|zh| zh when 'wrap' off scroll screen N characters
|
||||||
to the right
|
to the right
|
||||||
|zi| zi toggle 'foldenable'
|
|zi| zi toggle 'foldenable'
|
||||||
@ -861,7 +861,7 @@ tag char note action in Normal mode ~
|
|||||||
|zuW| zuW undo |zW|
|
|zuW| zuW undo |zW|
|
||||||
|zuG| zuG undo |zG|
|
|zuG| zuG undo |zG|
|
||||||
|zv| zv open enough folds to view the cursor line
|
|zv| zv open enough folds to view the cursor line
|
||||||
|zw| zw mark word as wrong (bad) spelled word
|
|zw| zw permanently mark word as bad spelled word
|
||||||
|zx| zx re-apply 'foldlevel' and do "zv"
|
|zx| zx re-apply 'foldlevel' and do "zv"
|
||||||
|zz| zz redraw, cursor line at center of window
|
|zz| zz redraw, cursor line at center of window
|
||||||
|z<Left>| z<Left> same as "zh"
|
|z<Left>| z<Left> same as "zh"
|
||||||
|
@ -65,7 +65,7 @@ substr($0,length($0),1) == "~" { print "<B><FONT COLOR=\"PURPLE\">" substr($0,1,
|
|||||||
#
|
#
|
||||||
#ad hoc code
|
#ad hoc code
|
||||||
#
|
#
|
||||||
/^"\|\& / {gsub(/\|/,"\\|"); }
|
/^"\|& / {gsub(/\|/,"\\|"); }
|
||||||
/ = b / {gsub(/ b /," \\b "); }
|
/ = b / {gsub(/ b /," \\b "); }
|
||||||
#
|
#
|
||||||
# one letter tag
|
# one letter tag
|
||||||
|
@ -117,6 +117,11 @@ q{0-9a-zA-Z"} Record typed characters into register {0-9a-zA-Z"}
|
|||||||
recorded macro and the yank will overwrite the
|
recorded macro and the yank will overwrite the
|
||||||
recorded macro.
|
recorded macro.
|
||||||
|
|
||||||
|
Note: The recording happens while you type, replaying
|
||||||
|
the register happens as if the keys come from a
|
||||||
|
mapping. This matters, for example, for undo, which
|
||||||
|
only syncs when commands were typed.
|
||||||
|
|
||||||
q Stops recording.
|
q Stops recording.
|
||||||
Implementation note: The 'q' that stops recording is
|
Implementation note: The 'q' that stops recording is
|
||||||
not stored in the register, unless it was the result
|
not stored in the register, unless it was the result
|
||||||
@ -129,7 +134,7 @@ q Stops recording.
|
|||||||
used.
|
used.
|
||||||
The register is executed like a mapping, that means
|
The register is executed like a mapping, that means
|
||||||
that the difference between 'wildchar' and 'wildcharm'
|
that the difference between 'wildchar' and 'wildcharm'
|
||||||
applies.
|
applies, and undo might not be synced in the same way.
|
||||||
For "@=" you are prompted to enter an expression. The
|
For "@=" you are prompted to enter an expression. The
|
||||||
result of the expression is then executed.
|
result of the expression is then executed.
|
||||||
See also |@:|.
|
See also |@:|.
|
||||||
|
@ -12,7 +12,7 @@ endif
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo&vim
|
||||||
|
|
||||||
if !exists('*VimFtpluginUndo')
|
if !exists('*VimFtpluginUndo')
|
||||||
func VimFtpluginUndo()
|
func VimFtpluginUndo()
|
||||||
@ -66,14 +66,14 @@ if !exists("no_plugin_maps") && !exists("no_vim_maps")
|
|||||||
let b:did_add_maps = 1
|
let b:did_add_maps = 1
|
||||||
|
|
||||||
" Move around functions.
|
" Move around functions.
|
||||||
nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR>
|
nnoremap <silent><buffer> [[ m':call search('^\s*\(fu\%[nction]\\|def\)\>', "bW")<CR>
|
||||||
vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR>
|
vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*\(fu\%[nction]\\|def\)\>', "bW")<CR>
|
||||||
nnoremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR>
|
nnoremap <silent><buffer> ]] m':call search('^\s*\(fu\%[nction]\\|def\)\>', "W")<CR>
|
||||||
vnoremap <silent><buffer> ]] m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "W")<CR>
|
vnoremap <silent><buffer> ]] m':<C-U>exe "normal! gv"<Bar>call search('^\s*\(fu\%[nction]\\|def\)\>', "W")<CR>
|
||||||
nnoremap <silent><buffer> [] m':call search('^\s*endf\%[unction]\>', "bW")<CR>
|
nnoremap <silent><buffer> [] m':call search('^\s*end\(f\%[unction]\\|def\)\>', "bW")<CR>
|
||||||
vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf\%[unction]\>', "bW")<CR>
|
vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*end\(f\%[unction]\\|def\)\>', "bW")<CR>
|
||||||
nnoremap <silent><buffer> ][ m':call search('^\s*endf\%[unction]\>', "W")<CR>
|
nnoremap <silent><buffer> ][ m':call search('^\s*end\(f\%[unction]\\|def\)\>', "W")<CR>
|
||||||
vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf\%[unction]\>', "W")<CR>
|
vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*end\(f\%[unction]\\|def\)\>', "W")<CR>
|
||||||
|
|
||||||
" Move around comments
|
" Move around comments
|
||||||
nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR>
|
nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR>
|
||||||
|
34
runtime/indent/sshconfig.vim
Normal file
34
runtime/indent/sshconfig.vim
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
" Vim indent file
|
||||||
|
" Language: ssh config file
|
||||||
|
" Maintainer: JasonKim <git@jasonk.me>
|
||||||
|
" Last Change: 2020 May 16
|
||||||
|
|
||||||
|
if exists("b:did_indent")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_indent = 1
|
||||||
|
|
||||||
|
setlocal autoindent
|
||||||
|
setlocal indentexpr=GetSshconfigIndent(v:lnum)
|
||||||
|
setlocal indentkeys=o,O,*<Return>,0=~host\ ,0=~match\ ,0#,!^F
|
||||||
|
|
||||||
|
let b:undo_indent = "setlocal autoindent< indentexpr< indentkeys<"
|
||||||
|
|
||||||
|
if exists("*GetSshconfigIndent")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
function GetSshconfigIndent(lnum)
|
||||||
|
let sw = shiftwidth()
|
||||||
|
let prev_lnum = prevnonblank(a:lnum - 1)
|
||||||
|
let curr_lnum = a:lnum
|
||||||
|
let prev_line = getline(prev_lnum)
|
||||||
|
let curr_line = getline(curr_lnum)
|
||||||
|
if curr_line =~? '^\s*\(host\|match\)\s'
|
||||||
|
return 0
|
||||||
|
elseif prev_line =~? '^\s*\(host\|match\)\s'
|
||||||
|
return sw
|
||||||
|
else
|
||||||
|
return indent(prev_lnum)
|
||||||
|
endif
|
||||||
|
endfunction
|
53
runtime/indent/testdir/sshconfig.in
Normal file
53
runtime/indent/testdir/sshconfig.in
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# vim: set filetype=sshconfig shiftwidth=4 expandtab :
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host myhost
|
||||||
|
User myuser
|
||||||
|
PasswordAuthentication no
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host aaa
|
||||||
|
User bbb
|
||||||
|
Host ccc
|
||||||
|
Host ddd
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
host aaa
|
||||||
|
HOST bbb
|
||||||
|
hoSt ccc
|
||||||
|
match ddd
|
||||||
|
MATCH eee
|
||||||
|
MatCH fff
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host aaa
|
||||||
|
User host
|
||||||
|
PasswordAuthentication no
|
||||||
|
Host *
|
||||||
|
User user
|
||||||
|
PasswordAuthentication no
|
||||||
|
Host match
|
||||||
|
User bbb
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host tab
|
||||||
|
User myuser
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host mix
|
||||||
|
User myuser
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host aaa
|
||||||
|
User bbb
|
||||||
|
Match ccc
|
||||||
|
User ddd
|
||||||
|
HostKeyAlgorithms ssh-ed25519
|
||||||
|
Match eee
|
||||||
|
# END_INDENT
|
53
runtime/indent/testdir/sshconfig.ok
Normal file
53
runtime/indent/testdir/sshconfig.ok
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# vim: set filetype=sshconfig shiftwidth=4 expandtab :
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host myhost
|
||||||
|
User myuser
|
||||||
|
PasswordAuthentication no
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host aaa
|
||||||
|
User bbb
|
||||||
|
Host ccc
|
||||||
|
Host ddd
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
host aaa
|
||||||
|
HOST bbb
|
||||||
|
hoSt ccc
|
||||||
|
match ddd
|
||||||
|
MATCH eee
|
||||||
|
MatCH fff
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host aaa
|
||||||
|
User host
|
||||||
|
PasswordAuthentication no
|
||||||
|
Host *
|
||||||
|
User user
|
||||||
|
PasswordAuthentication no
|
||||||
|
Host match
|
||||||
|
User bbb
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host tab
|
||||||
|
User myuser
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host mix
|
||||||
|
User myuser
|
||||||
|
# END_INDENT
|
||||||
|
|
||||||
|
# START_INDENT
|
||||||
|
Host aaa
|
||||||
|
User bbb
|
||||||
|
Match ccc
|
||||||
|
User ddd
|
||||||
|
HostKeyAlgorithms ssh-ed25519
|
||||||
|
Match eee
|
||||||
|
# END_INDENT
|
@ -1,6 +1,6 @@
|
|||||||
" Vim script to work like "less"
|
" Vim script to work like "less"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2017 Mar 31
|
" Last Change: 2020 May 18
|
||||||
|
|
||||||
" Avoid loading this file twice, allow the user to define his own script.
|
" Avoid loading this file twice, allow the user to define his own script.
|
||||||
if exists("loaded_less")
|
if exists("loaded_less")
|
||||||
@ -66,8 +66,8 @@ endif
|
|||||||
" When reading from stdin don't consider the file modified.
|
" When reading from stdin don't consider the file modified.
|
||||||
au VimEnter * set nomod
|
au VimEnter * set nomod
|
||||||
|
|
||||||
" Can't modify the text
|
" Can't modify the text or write the file.
|
||||||
set noma
|
set nomodifiable readonly
|
||||||
|
|
||||||
" Give help
|
" Give help
|
||||||
noremap h :call <SID>Help()<CR>
|
noremap h :call <SID>Help()<CR>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"
|
"
|
||||||
" Author: Bram Moolenaar
|
" Author: Bram Moolenaar
|
||||||
" Copyright: Vim license applies, see ":help license"
|
" Copyright: Vim license applies, see ":help license"
|
||||||
" Last Change: 2020 Feb 19
|
" Last Change: 2020 May 22
|
||||||
"
|
"
|
||||||
" WORK IN PROGRESS - Only the basics work
|
" WORK IN PROGRESS - Only the basics work
|
||||||
" Note: On MS-Windows you need a recent version of gdb. The one included with
|
" Note: On MS-Windows you need a recent version of gdb. The one included with
|
||||||
@ -758,8 +758,10 @@ func s:InstallCommands()
|
|||||||
command Asm call s:GotoAsmwinOrCreateIt()
|
command Asm call s:GotoAsmwinOrCreateIt()
|
||||||
command Winbar call s:InstallWinbar()
|
command Winbar call s:InstallWinbar()
|
||||||
|
|
||||||
" TODO: can the K mapping be restored?
|
if !exists('g:termdebug_map_K') || g:termdebug_map_K
|
||||||
|
let s:k_map_saved = maparg('K', 'n', 0, 1)
|
||||||
nnoremap K :Evaluate<CR>
|
nnoremap K :Evaluate<CR>
|
||||||
|
endif
|
||||||
|
|
||||||
let &cpo = save_cpo
|
let &cpo = save_cpo
|
||||||
endfunc
|
endfunc
|
||||||
@ -797,7 +799,10 @@ func s:DeleteCommands()
|
|||||||
delcommand Asm
|
delcommand Asm
|
||||||
delcommand Winbar
|
delcommand Winbar
|
||||||
|
|
||||||
nunmap K
|
if exists('s:k_map_saved')
|
||||||
|
call mapset('n', 0, s:k_map_saved)
|
||||||
|
unlet s:k_map_saved
|
||||||
|
endif
|
||||||
|
|
||||||
exe 'sign unplace ' . s:pc_id
|
exe 'sign unplace ' . s:pc_id
|
||||||
for [id, entries] in items(s:breakpoints)
|
for [id, entries] in items(s:breakpoints)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Groovy
|
" Language: Groovy
|
||||||
" Original Author: Alessio Pace <billy.corgan@tiscali.it>
|
" Original Author: Alessio Pace <billy.corgan AT tiscali.it>
|
||||||
" Maintainer: Tobias Rapp <yahuxo@gmx.de>
|
" Maintainer: Tobias Rapp <yahuxo+vim AT mailbox.org>
|
||||||
" Version: 0.1.16
|
" Version: 0.1.17
|
||||||
" URL: http://www.vim.org/scripts/script.php?script_id=945
|
" URL: http://www.vim.org/scripts/script.php?script_id=945
|
||||||
" Last Change: 2016 May 23
|
" Last Change: 2020 May 26
|
||||||
|
|
||||||
" THE ORIGINAL AUTHOR'S NOTES:
|
" THE ORIGINAL AUTHOR'S NOTES:
|
||||||
"
|
"
|
||||||
@ -253,7 +253,7 @@ if exists("groovy_regex_strings")
|
|||||||
endif
|
endif
|
||||||
" syn region groovyELExpr start=+${+ end=+}+ keepend contained
|
" syn region groovyELExpr start=+${+ end=+}+ keepend contained
|
||||||
syn match groovyELExpr /\${.\{-}}/ contained
|
syn match groovyELExpr /\${.\{-}}/ contained
|
||||||
syn match groovyELExpr /\$[a-zA-Z_][a-zA-Z0-9_.]*/ contained
|
syn match groovyELExpr /\$[a-zA-Z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\uFFFE_][a-zA-Z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\uFFFE0-9_.]*/ contained
|
||||||
hi def link groovyELExpr Identifier
|
hi def link groovyELExpr Identifier
|
||||||
|
|
||||||
" TODO: better matching. I am waiting to understand how it really works in groovy
|
" TODO: better matching. I am waiting to understand how it really works in groovy
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Language: SPEC: Build/install scripts for Linux RPM packages
|
" Language: SPEC: Build/install scripts for Linux RPM packages
|
||||||
" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com
|
" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com
|
||||||
" Former Maintainer: Donovan Rebbechi elflord@panix.com (until March 2014)
|
" Former Maintainer: Donovan Rebbechi elflord@panix.com (until March 2014)
|
||||||
" Last Change: 2020 Feb 07
|
" Last Change: 2020 May 25
|
||||||
|
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -128,6 +128,8 @@ syn case match
|
|||||||
"sh-like comment stile, only valid in script part
|
"sh-like comment stile, only valid in script part
|
||||||
syn match shComment contained '#.*$'
|
syn match shComment contained '#.*$'
|
||||||
|
|
||||||
|
syn region dnlComment matchgroup=specComment start=+%dnl+ end=+$+
|
||||||
|
|
||||||
syn region shQuote1 contained matchgroup=shQuoteDelim start=+'+ skip=+\\'+ end=+'+ contains=specMacroIdentifier
|
syn region shQuote1 contained matchgroup=shQuoteDelim start=+'+ skip=+\\'+ end=+'+ contains=specMacroIdentifier
|
||||||
syn region shQuote2 contained matchgroup=shQuoteDelim start=+"+ skip=+\\"+ end=+"+ contains=specVariables,specMacroIdentifier
|
syn region shQuote2 contained matchgroup=shQuoteDelim start=+"+ skip=+\\"+ end=+"+ contains=specVariables,specMacroIdentifier
|
||||||
|
|
||||||
@ -173,6 +175,7 @@ endif
|
|||||||
|
|
||||||
"sh colors
|
"sh colors
|
||||||
hi def link shComment Comment
|
hi def link shComment Comment
|
||||||
|
hi def link dnlComment Comment
|
||||||
hi def link shIf Statement
|
hi def link shIf Statement
|
||||||
hi def link shOperator Special
|
hi def link shOperator Special
|
||||||
hi def link shQuote1 String
|
hi def link shQuote1 String
|
||||||
|
@ -201,7 +201,7 @@ syn cluster vimOperGroup contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperPa
|
|||||||
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=vimoperStar,@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")
|
||||||
syn match vimOperError ")"
|
syn match vimOperError ")"
|
||||||
@ -272,7 +272,7 @@ syn match vimComment excludenl +\s#[^{].*$+lc=1 contains=@vimCommentGroup,vimCom
|
|||||||
syn match vimComment +\<endif\s\+#[^{].*$+lc=5 contains=@vimCommentGroup,vimCommentString
|
syn match vimComment +\<endif\s\+#[^{].*$+lc=5 contains=@vimCommentGroup,vimCommentString
|
||||||
syn match vimComment +\<else\s\+#[^{].*$+lc=4 contains=@vimCommentGroup,vimCommentString
|
syn match vimComment +\<else\s\+#[^{].*$+lc=4 contains=@vimCommentGroup,vimCommentString
|
||||||
" Vim9 comment inside expression
|
" Vim9 comment inside expression
|
||||||
syn match vim9Comment +\s\zs#[^{].*$+ contains=@vimCommentGroup,vimCommentString
|
syn match vim9Comment +\s\zs#[^{].*$+ms=s+1 contains=@vimCommentGroup,vimCommentString
|
||||||
|
|
||||||
" Environment Variables: {{{2
|
" Environment Variables: {{{2
|
||||||
" =====================
|
" =====================
|
||||||
@ -293,7 +293,7 @@ syn region vimString oneline keepend start=+[^a-zA-Z>!\\@]"+lc=1 skip=+\\\\\|\\"
|
|||||||
syn region vimString oneline keepend start=+[^a-zA-Z>!\\@]'+lc=1 end=+'+
|
syn region vimString oneline keepend start=+[^a-zA-Z>!\\@]'+lc=1 end=+'+
|
||||||
syn region vimString oneline start=+=!+lc=1 skip=+\\\\\|\\!+ end=+!+ contains=@vimStringGroup
|
syn region vimString oneline start=+=!+lc=1 skip=+\\\\\|\\!+ end=+!+ contains=@vimStringGroup
|
||||||
syn region vimString oneline start="=+"lc=1 skip="\\\\\|\\+" end="+" contains=@vimStringGroup
|
syn region vimString oneline start="=+"lc=1 skip="\\\\\|\\+" end="+" contains=@vimStringGroup
|
||||||
syn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup
|
"syn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup
|
||||||
syn match vimString contained +"[^"]*\\$+ skipnl nextgroup=vimStringCont
|
syn match vimString contained +"[^"]*\\$+ skipnl nextgroup=vimStringCont
|
||||||
syn match vimStringCont contained +\(\\\\\|.\)\{-}[^\\]"+
|
syn match vimStringCont contained +\(\\\\\|.\)\{-}[^\\]"+
|
||||||
|
|
||||||
@ -911,6 +911,7 @@ if !exists("skip_vim_syntax_inits")
|
|||||||
hi def link vimNumber Number
|
hi def link vimNumber Number
|
||||||
hi def link vimOperError Error
|
hi def link vimOperError Error
|
||||||
hi def link vimOper Operator
|
hi def link vimOper Operator
|
||||||
|
hi def link vimOperStar vimOper
|
||||||
hi def link vimOption PreProc
|
hi def link vimOption PreProc
|
||||||
hi def link vimParenSep Delimiter
|
hi def link vimParenSep Delimiter
|
||||||
hi def link vimPatSepErr vimError
|
hi def link vimPatSepErr vimError
|
||||||
|
Loading…
Reference in New Issue
Block a user