vim-patch:03413f4

Updated runtime files.

03413f4416

Ignore changes to
* doc/Makefile, doc/help.txt: Related to Vim's version8 documentation
* doc/gui_x11.txt, doc/todo.txt, doc/vim.1, gvim.desktop, vim.desktop:
  Irrelevant to Neovim
* doc/quickref.txt, doc/options.txt: As of yet unported 'emoji'
* doc/tags, syntax/vim.vim: Generated at build time
This commit is contained in:
James McCoy
2016-07-07 23:26:00 -04:00
parent 23b2ee0771
commit e686b613ec
16 changed files with 170 additions and 99 deletions

View File

@@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.4. Last change: 2016 Mar 29 *eval.txt* For Vim version 7.4. Last change: 2016 Apr 12
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -413,7 +413,8 @@ only appear once. Examples: >
A key is always a String. You can use a Number, it will be converted to a A key is always a String. You can use a Number, it will be converted to a
String automatically. Thus the String '4' and the number 4 will find the same String automatically. Thus the String '4' and the number 4 will find the same
entry. Note that the String '04' and the Number 04 are different, since the entry. Note that the String '04' and the Number 04 are different, since the
Number will be converted to the String '4'. Number will be converted to the String '4'. The empty string can be used as a
key.
A value can be any expression. Using a Dictionary for a value creates a A value can be any expression. Using a Dictionary for a value creates a
nested Dictionary: > nested Dictionary: >
@@ -861,11 +862,12 @@ These three can be repeated and mixed. Examples:
expr8 *expr8* expr8 *expr8*
----- -----
expr8[expr1] item of String or |List| *expr-[]* *E111* expr8[expr1] item of String or |List| *expr-[]* *E111*
*subscript*
If expr8 is a Number or String this results in a String that contains the If expr8 is a Number or String this results in a String that contains the
expr1'th single byte from expr8. expr8 is used as a String, expr1 as a expr1'th single byte from expr8. expr8 is used as a String, expr1 as a
Number. This doesn't recognize multi-byte encodings, see |byteidx()| for Number. This doesn't recognize multi-byte encodings, see |byteidx()| for
an alternative. an alternative, or use `split()` to turn the string into a list of characters.
Index zero gives the first byte. This is like it works in C. Careful: Index zero gives the first byte. This is like it works in C. Careful:
text column numbers start with one! Example, to get the byte under the text column numbers start with one! Example, to get the byte under the
@@ -2155,6 +2157,7 @@ writefile({list}, {fname} [, {flags}])
Number write list of lines to file {fname} Number write list of lines to file {fname}
xor({expr}, {expr}) Number bitwise XOR xor({expr}, {expr}) Number bitwise XOR
abs({expr}) *abs()* abs({expr}) *abs()*
Return the absolute value of {expr}. When {expr} evaluates to Return the absolute value of {expr}. When {expr} evaluates to
a |Float| abs() returns a |Float|. When {expr} can be a |Float| abs() returns a |Float|. When {expr} can be
@@ -2779,6 +2782,7 @@ cursor({list})
When there is one argument {list} this is used as a |List| When there is one argument {list} this is used as a |List|
with two, three or four item: with two, three or four item:
[{lnum}, {col}]
[{lnum}, {col}, {off}] [{lnum}, {col}, {off}]
[{lnum}, {col}, {off}, {curswant}] [{lnum}, {col}, {off}, {curswant}]
This is like the return value of |getpos()| or |getcurpos()|, This is like the return value of |getpos()| or |getcurpos()|,
@@ -3207,7 +3211,10 @@ feedkeys({string} [, {mode}]) *feedkeys()*
similar to using ":normal!". You can call feedkeys() similar to using ":normal!". You can call feedkeys()
several times without 'x' and then one time with 'x' several times without 'x' and then one time with 'x'
(possibly with an empty {string}) to execute all the (possibly with an empty {string}) to execute all the
typeahead. typeahead. Note that when Vim ends in Insert mode it
will behave as if <Esc> is typed, to avoid getting
stuck, waiting for a character to be typed before the
script continues.
Return value is always 0. Return value is always 0.
filereadable({file}) *filereadable()* filereadable({file}) *filereadable()*

View File

@@ -1,4 +1,4 @@
*help.txt* For Vim version 7.4. Last change: 2016 Feb 27 *help.txt* For Vim version 7.4. Last change: 2016 Mar 31
VIM - main help file VIM - main help file
k k

View File

@@ -1,4 +1,4 @@
*helphelp.txt* For Vim version 7.4. Last change: 2016 Mar 28 *helphelp.txt* For Vim version 7.4. Last change: 2016 Apr 01
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -313,6 +313,10 @@ aligned on a line.
When referring to an existing help tag and to create a hot-link, place the When referring to an existing help tag and to create a hot-link, place the
name between two bars (|) eg. |help-writing|. name between two bars (|) eg. |help-writing|.
When referring to a Vim command and to create a hot-link, place the
name between two backticks, eg. inside `:filetype`. You will see this is
highlighted as a command, like a code block (see below).
When referring to a Vim option in the help file, place the option name between When referring to a Vim option in the help file, place the option name between
two single quotes, eg. 'statusline' two single quotes, eg. 'statusline'

View File

@@ -1,4 +1,4 @@
*options.txt* For Vim version 7.4. Last change: 2016 Mar 24 *options.txt* For Vim version 7.4. Last change: 2016 Apr 12
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar

View File

@@ -1,4 +1,4 @@
*pattern.txt* For Vim version 7.4. Last change: 2016 Jan 03 *pattern.txt* For Vim version 7.4. Last change: 2016 Apr 03
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1096,8 +1096,8 @@ x A single character, with no special meaning, matches itself
'/', alphabetic, numeric, '_' or '~'. '/', alphabetic, numeric, '_' or '~'.
These items only work for 8-bit characters, except [:lower:] and These items only work for 8-bit characters, except [:lower:] and
[:upper:] also work for multi-byte characters when using the new [:upper:] also work for multi-byte characters when using the new
regexp engine. In the future these items may work for multi-byte regexp engine. See |two-engines|. In the future these items may
characters. work for multi-byte characters.
*/[[=* *[==]* */[[=* *[==]*
- An equivalence class. This means that characters are matched that - An equivalence class. This means that characters are matched that
have almost the same meaning, e.g., when ignoring accents. This have almost the same meaning, e.g., when ignoring accents. This

View File

@@ -1,4 +1,4 @@
*quickref.txt* For Vim version 7.4. Last change: 2016 Feb 24 *quickref.txt* For Vim version 7.4. Last change: 2016 Mar 30
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar

View File

@@ -1,4 +1,4 @@
*repeat.txt* For Vim version 7.4. Last change: 2016 Mar 27 *repeat.txt* For Vim version 7.4. Last change: 2016 Apr 05
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -70,8 +70,8 @@ examples.
The global commands work by first scanning through the [range] lines and The global commands work by first scanning through the [range] lines and
marking each line where a match occurs (for a multi-line pattern, only the marking each line where a match occurs (for a multi-line pattern, only the
start of the match matters). start of the match matters).
In a second scan the [cmd] is executed for each marked line with its line In a second scan the [cmd] is executed for each marked line, as if the cursor
number prepended. For ":v" and ":g!" the command is executed for each not was in that line. For ":v" and ":g!" the command is executed for each not
marked line. If a line is deleted its mark disappears. marked line. If a line is deleted its mark disappears.
The default for [range] is the whole buffer (1,$). Use "CTRL-C" to interrupt The default for [range] is the whole buffer (1,$). Use "CTRL-C" to interrupt
the command. If an error message is given for a line, the command for that the command. If an error message is given for a line, the command for that
@@ -225,8 +225,11 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
there yet. there yet.
Note that {name} is the directory name, not the name Note that {name} is the directory name, not the name
of the .vim file. If the "{name}/plugin" directory of the .vim file. All the files matching the pattern
contains more than one file they are all sourced. pack/*/opt/{name}/plugin/**/*.vim ~
will be sourced. This allows for using subdirectories
below "plugin", just like with plugins in
'runtimepath'.
If the filetype detection was not enabled yet (this If the filetype detection was not enabled yet (this
is usually done with a "syntax enable" or "filetype is usually done with a "syntax enable" or "filetype
@@ -242,15 +245,24 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
Also see |pack-add|. Also see |pack-add|.
*:packl* *:packloadall* *:packl* *:packloadall*
:packloadall[!] Load all packages in the "start" directories under :packl[oadall][!] Load all packages in the "start" directory under each
'packpath'. The directories found are added to entry in 'packpath'.
'runtimepath'.
First all the directories found are added to
'runtimepath', then the plugins found in the
directories are sourced. This allows for a plugin to
depend on something of another plugin, e.g. an
"autoload" directory. See |packload-two-steps| for
how this can be useful.
This is normally done automatically during startup, This is normally done automatically during startup,
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. After this command
it won't happen again. When the optional ! is added it won't happen again. When the optional ! is added
this command will load packages even when done before. this command will load packages even when done before.
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.
See |packages|. See |packages|.
@@ -456,8 +468,9 @@ You would now have these files under ~/.local/share/nvim/site:
pack/foo/opt/foodebug/plugin/debugger.vim pack/foo/opt/foodebug/plugin/debugger.vim
When Vim starts up, after processing your .vimrc, it scans all directories in When Vim starts up, after processing your .vimrc, it scans all directories in
'packpath' for plugins under the "pack/*/start" directory and loads them. The 'packpath' for plugins under the "pack/*/start" directory. First all those
directory is added to 'runtimepath'. directories are added to 'runtimepath'. Then all the plugins are loaded.
See |packload-two-steps| for how these two steps can be useful.
In the example Vim will find "pack/foo/start/foobar/plugin/foo.vim" and adds In the example Vim will find "pack/foo/start/foobar/plugin/foo.vim" and adds
"~/.local/share/nvim/site/pack/foo/start/foobar" to 'runtimepath'. "~/.local/share/nvim/site/pack/foo/start/foobar" to 'runtimepath'.
@@ -585,6 +598,23 @@ the command after changing the plugin help: >
:helptags path/start/foobar/doc :helptags path/start/foobar/doc
:helptags path/opt/fooextra/doc :helptags path/opt/fooextra/doc
Dependencies between plugins ~
*packload-two-steps*
Suppose you have a two plugins that depend on the same functionality. You can
put the common functionality in an autoload directory, so that it will be
found automatically. Your package would have these files:
pack/foo/start/one/plugin/one.vim >
call foolib#getit()
< pack/foo/start/two/plugin/two.vim >
call foolib#getit()
< pack/foo/start/lib/autoload/foolib.vim >
func foolib#getit()
This works, because loading packages will first add all found directories to
'runtimepath' before sourcing the plugins.
============================================================================== ==============================================================================
7. Debugging scripts *debug-scripts* 7. Debugging scripts *debug-scripts*

View File

@@ -1,4 +1,4 @@
*starting.txt* For Vim version 7.4. Last change: 2016 Mar 26 *starting.txt* For Vim version 7.4. Last change: 2016 Apr 05
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -464,9 +464,10 @@ accordingly. Vim proceeds in this order:
commands from the command line have not been executed yet. You can commands from the command line have not been executed yet. You can
use "--cmd 'set noloadplugins'" |--cmd|. use "--cmd 'set noloadplugins'" |--cmd|.
Plugin packs are loaded. These are plugins, as above, but found in Packages are loaded. These are plugins, as above, but found in the
'packpath' "start" directories. Every plugin directory found is added "start" directory of each entry in 'packpath'. Every plugin directory
in 'runtimepath'. See |packages|. found is added in 'runtimepath' and then the plugins are sourced. See
|packages|.
7. Set 'shellpipe' and 'shellredir' 7. Set 'shellpipe' and 'shellredir'
The 'shellpipe' and 'shellredir' options are set according to the The 'shellpipe' and 'shellredir' options are set according to the

View File

@@ -1,4 +1,4 @@
*syntax.txt* For Vim version 7.4. Last change: 2016 Mar 12 *syntax.txt* For Vim version 7.4. Last change: 2016 Apr 10
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -936,26 +936,27 @@ To disable them use ":unlet". Example: >
:unlet c_comment_strings :unlet c_comment_strings
Variable Highlight ~ Variable Highlight ~
c_gnu GNU gcc specific items *c_gnu* GNU gcc specific items
c_comment_strings strings and numbers inside a comment *c_comment_strings* strings and numbers inside a comment
c_space_errors trailing white space and spaces before a <Tab> *c_space_errors* trailing white space and spaces before a <Tab>
c_no_trail_space_error ... but no trailing spaces *c_no_trail_space_error* ... but no trailing spaces
c_no_tab_space_error ... but no spaces before a <Tab> *c_no_tab_space_error* ... but no spaces before a <Tab>
c_no_bracket_error don't highlight {}; inside [] as errors *c_no_bracket_error* don't highlight {}; inside [] as errors
c_no_curly_error don't highlight {}; inside [] and () as errors; *c_no_curly_error* don't highlight {}; inside [] and () as errors;
except { and } in first column except { and } in first column
c_curly_error highlight a missing }; this forces syncing from the *c_curly_error* highlight a missing }; this forces syncing from the
start of the file, can be slow start of the file, can be slow
c_no_ansi don't do standard ANSI types and constants *c_no_ansi* don't do standard ANSI types and constants
c_ansi_typedefs ... but do standard ANSI types *c_ansi_typedefs* ... but do standard ANSI types
c_ansi_constants ... but do standard ANSI constants *c_ansi_constants* ... but do standard ANSI constants
c_no_utf don't highlight \u and \U in strings *c_no_utf* don't highlight \u and \U in strings
c_syntax_for_h for *.h files use C syntax instead of C++ and use objc *c_syntax_for_h* for *.h files use C syntax instead of C++ and use objc
syntax instead of objcpp syntax instead of objcpp
c_no_if0 don't highlight "#if 0" blocks as comments *c_no_if0* don't highlight "#if 0" blocks as comments
c_no_cformat don't highlight %-formats in strings *c_no_cformat* don't highlight %-formats in strings
c_no_c99 don't highlight C99 standard items *c_no_c99* don't highlight C99 standard items
c_no_c11 don't highlight C11 standard items *c_no_c11* don't highlight C11 standard items
*c_no_bsd* don't highlight BSD specific types
When 'foldmethod' is set to "syntax" then /* */ comments and { } blocks will When 'foldmethod' is set to "syntax" then /* */ comments and { } blocks will
become a fold. If you don't want comments to become a fold use: > become a fold. If you don't want comments to become a fold use: >
@@ -5026,6 +5027,9 @@ defaults back: >
:syntax reset :syntax reset
It is a bit of a wrong name, since it does not reset any syntax items, it only
affects the highlighting.
This doesn't change the colors for the 'highlight' option. This doesn't change the colors for the 'highlight' option.
Note that the syntax colors that you set in your vimrc file will also be reset Note that the syntax colors that you set in your vimrc file will also be reset

View File

@@ -1,4 +1,4 @@
*usr_41.txt* For Vim version 7.4. Last change: 2016 Mar 27 *usr_41.txt* For Vim version 7.4. Last change: 2016 Apr 12
VIM USER MANUAL - by Bram Moolenaar VIM USER MANUAL - by Bram Moolenaar
@@ -768,6 +768,7 @@ Date and Time: *date-functions* *time-functions*
strftime() convert time to a string strftime() convert time to a string
reltime() get the current or elapsed time accurately reltime() get the current or elapsed time accurately
reltimestr() convert reltime() result to a string reltimestr() convert reltime() result to a string
reltimefloat() convert reltime() result to a Float
*buffer-functions* *window-functions* *arg-functions* *buffer-functions* *window-functions* *arg-functions*
Buffers, windows and the argument list: Buffers, windows and the argument list:
@@ -890,7 +891,9 @@ Mappings: *mapping-functions*
Testing: *test-functions* Testing: *test-functions*
assert_equal() assert that two expressions values are equal assert_equal() assert that two expressions values are equal
assert_notequal() assert that two expressions values are not equal
assert_match() assert that a pattern matches the value assert_match() assert that a pattern matches the value
assert_notmatch() assert that a pattern does not match the value
assert_false() assert that an expression is false assert_false() assert that an expression is false
assert_true() assert that an expression is true assert_true() assert that an expression is true
assert_exception() assert that a command throws an exception assert_exception() assert that a command throws an exception

View File

@@ -1,9 +1,9 @@
" vimball.vim : construct a file containing both paths and files " vimball.vim : construct a file containing both paths and files
" Author: Charles E. Campbell, Jr. " Author: Charles E. Campbell
" Date: Jan 17, 2012 " Date: Apr 11, 2016
" Version: 35 " Version: 37
" GetLatestVimScripts: 1502 1 :AutoInstall: vimball.vim " GetLatestVimScripts: 1502 1 :AutoInstall: vimball.vim
" Copyright: (c) 2004-2011 by Charles E. Campbell, Jr. " Copyright: (c) 2004-2011 by Charles E. Campbell
" The VIM LICENSE applies to Vimball.vim, and Vimball.txt " The VIM LICENSE applies to Vimball.vim, and Vimball.txt
" (see |copyright|) except use "Vimball" instead of "Vim". " (see |copyright|) except use "Vimball" instead of "Vim".
" No warranty, express or implied. " No warranty, express or implied.
@@ -14,7 +14,7 @@
if &cp || exists("g:loaded_vimball") if &cp || exists("g:loaded_vimball")
finish finish
endif endif
let g:loaded_vimball = "v35" let g:loaded_vimball = "v37"
if v:version < 702 if v:version < 702
echohl WarningMsg echohl WarningMsg
echo "***warning*** this version of vimball needs vim 7.2" echo "***warning*** this version of vimball needs vim 7.2"
@@ -142,7 +142,7 @@ fun! vimball#MkVimball(line1,line2,writelevel,...) range
let lastline= line("$") + 1 let lastline= line("$") + 1
if lastline == 2 && getline("$") == "" if lastline == 2 && getline("$") == ""
call setline(1,'" Vimball Archiver by Charles E. Campbell, Jr., Ph.D.') call setline(1,'" Vimball Archiver by Charles E. Campbell')
call setline(2,'UseVimball') call setline(2,'UseVimball')
call setline(3,'finish') call setline(3,'finish')
let lastline= line("$") + 1 let lastline= line("$") + 1
@@ -179,7 +179,7 @@ fun! vimball#MkVimball(line1,line2,writelevel,...) range
" remove the evidence " remove the evidence
setlocal nomod bh=wipe setlocal nomod bh=wipe
exe "tabn ".curtabnr exe "tabn ".curtabnr
exe "tabc ".vbtabnr exe "tabc! ".vbtabnr
" restore options " restore options
call vimball#RestoreSettings() call vimball#RestoreSettings()
@@ -280,7 +280,7 @@ fun! vimball#Vimball(really,...)
" when AsNeeded/filename is filereadable or was present in VimballRecord " when AsNeeded/filename is filereadable or was present in VimballRecord
if fname =~ '\<plugin/' if fname =~ '\<plugin/'
let anfname= substitute(fname,'\<plugin/','AsNeeded/','') let anfname= substitute(fname,'\<plugin/','AsNeeded/','')
if filereadable(anfname) || (exists("s:VBRstring") && s:VBRstring =~ anfname) if filereadable(anfname) || (exists("s:VBRstring") && s:VBRstring =~# anfname)
" call Decho("using anfname<".anfname."> instead of <".fname.">") " call Decho("using anfname<".anfname."> instead of <".fname.">")
let fname= anfname let fname= anfname
endif endif
@@ -379,10 +379,10 @@ fun! vimball#Vimball(really,...)
call s:RecordInFile(home) call s:RecordInFile(home)
" restore events, delete tab and buffer " restore events, delete tab and buffer
exe "tabn ".vbtabnr exe "sil! tabn ".vbtabnr
setlocal nomod bh=wipe setlocal nomod bh=wipe
exe "tabn ".curtabnr exe "sil! tabn ".curtabnr
exe "tabc ".vbtabnr exe "sil! tabc! ".vbtabnr
call vimball#RestoreSettings() call vimball#RestoreSettings()
call s:ChgDir(curdir) call s:ChgDir(curdir)
@@ -555,7 +555,7 @@ fun! vimball#ShowMesg(level,msg)
set noruler noshowcmd set noruler noshowcmd
redraw! redraw!
if &fo =~ '[ta]' if &fo =~# '[ta]'
echomsg "***vimball*** ".a:msg echomsg "***vimball*** ".a:msg
else else
if a:level == s:WARNING || a:level == s:USAGE if a:level == s:WARNING || a:level == s:USAGE
@@ -715,7 +715,7 @@ fun! vimball#SaveSettings()
" call Dfunc("SaveSettings()") " call Dfunc("SaveSettings()")
let s:makeep = getpos("'a") let s:makeep = getpos("'a")
let s:regakeep= @a let s:regakeep= @a
if exists("&acd") if exists("+acd")
let s:acdkeep = &acd let s:acdkeep = &acd
endif endif
let s:eikeep = &ei let s:eikeep = &ei
@@ -728,7 +728,7 @@ fun! vimball#SaveSettings()
let s:vekeep = &ve let s:vekeep = &ve
let s:ffkeep = &l:ff let s:ffkeep = &l:ff
let s:swfkeep = &l:swf let s:swfkeep = &l:swf
if exists("&acd") if exists("+acd")
setlocal ei=all ve=all noacd nofen noic report=999 nohid bt= ma lz pm= ff=unix noswf setlocal ei=all ve=all noacd nofen noic report=999 nohid bt= ma lz pm= ff=unix noswf
else else
setlocal ei=all ve=all nofen noic report=999 nohid bt= ma lz pm= ff=unix noswf setlocal ei=all ve=all nofen noic report=999 nohid bt= ma lz pm= ff=unix noswf
@@ -743,7 +743,7 @@ endfun
fun! vimball#RestoreSettings() fun! vimball#RestoreSettings()
" call Dfunc("RestoreSettings()") " call Dfunc("RestoreSettings()")
let @a = s:regakeep let @a = s:regakeep
if exists("&acd") if exists("+acd")
let &acd = s:acdkeep let &acd = s:acdkeep
endif endif
let &l:fen = s:fenkeep let &l:fen = s:fenkeep
@@ -760,7 +760,7 @@ fun! vimball#RestoreSettings()
" call Decho("restore mark-a: makeep=".string(makeep)) " call Decho("restore mark-a: makeep=".string(makeep))
call setpos("'a",s:makeep) call setpos("'a",s:makeep)
endif endif
if exists("&acd") if exists("+acd")
unlet s:acdkeep unlet s:acdkeep
endif endif
unlet s:regakeep s:eikeep s:fenkeep s:hidkeep s:ickeep s:repkeep s:vekeep s:makeep s:lzkeep s:pmkeep s:ffkeep unlet s:regakeep s:eikeep s:fenkeep s:hidkeep s:ickeep s:repkeep s:vekeep s:makeep s:lzkeep s:pmkeep s:ffkeep

View File

@@ -1,6 +1,6 @@
" vimballPlugin : construct a file containing both paths and files " vimballPlugin : construct a file containing both paths and files
" Author: Charles E. Campbell, Jr. " Author: Charles E. Campbell
" Copyright: (c) 2004-2010 by Charles E. Campbell, Jr. " Copyright: (c) 2004-2014 by Charles E. Campbell
" The VIM LICENSE applies to Vimball.vim, and Vimball.txt " The VIM LICENSE applies to Vimball.vim, and Vimball.txt
" (see |copyright|) except use "Vimball" instead of "Vim". " (see |copyright|) except use "Vimball" instead of "Vim".
" No warranty, express or implied. " No warranty, express or implied.
@@ -16,22 +16,25 @@
if &cp || exists("g:loaded_vimballPlugin") if &cp || exists("g:loaded_vimballPlugin")
finish finish
endif endif
let g:loaded_vimballPlugin = "v35" let g:loaded_vimballPlugin = "v37"
let s:keepcpo = &cpo let s:keepcpo = &cpo
set cpo&vim set cpo&vim
" ------------------------------------------------------------------------------ " ------------------------------------------------------------------------------
" Public Interface: {{{1 " Public Interface: {{{1
com! -ra -complete=file -na=+ -bang MkVimball call vimball#MkVimball(<line1>,<line2>,<bang>0,<f-args>) com! -range -complete=file -nargs=+ -bang MkVimball call vimball#MkVimball(<line1>,<line2>,<bang>0,<f-args>)
com! -na=? -complete=dir UseVimball call vimball#Vimball(1,<f-args>) com! -nargs=? -complete=dir UseVimball call vimball#Vimball(1,<f-args>)
com! -na=0 VimballList call vimball#Vimball(0) com! -nargs=0 VimballList call vimball#Vimball(0)
com! -na=* -complete=dir RmVimball call vimball#SaveSettings()|call vimball#RmVimball(<f-args>)|call vimball#RestoreSettings() com! -nargs=* -complete=dir RmVimball call vimball#SaveSettings()|call vimball#RmVimball(<f-args>)|call vimball#RestoreSettings()
au BufEnter *.vba,*.vba.gz,*.vba.bz2,*.vba.zip,*.vba.xz setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|call vimball#ShowMesg(0,"Source this file to extract it! (:so %)") augroup Vimball
au SourceCmd *.vba.gz,*.vba.bz2,*.vba.zip,*.vba.xz if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|endif|call vimball#Decompress(expand("<amatch>"))|so %|if expand("%")!=expand("<afile>")|close|endif au!
au SourceCmd *.vba if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|call vimball#Vimball(1)|close|else|call vimball#Vimball(1)|endif au BufEnter *.vba,*.vba.gz,*.vba.bz2,*.vba.zip,*.vba.xz setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|if line('$') > 1|call vimball#ShowMesg(0,"Source this file to extract it! (:so %)")|endif
au BufEnter *.vmb,*.vmb.gz,*.vmb.bz2,*.vmb.zip,*.vmb.xz setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|call vimball#ShowMesg(0,"Source this file to extract it! (:so %)") au SourceCmd *.vba.gz,*.vba.bz2,*.vba.zip,*.vba.xz let s:origfile=expand("%")|if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|endif|call vimball#Decompress(expand("<amatch>"))|so %|if s:origfile!=expand("<afile>")|close|endif
au SourceCmd *.vmb.gz,*.vmb.bz2,*.vmb.zip,*.vmb.xz if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|endif|call vimball#Decompress(expand("<amatch>"))|so %|if expand("%")!=expand("<afile>")|close|endif au SourceCmd *.vba if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|call vimball#Vimball(1)|close|else|call vimball#Vimball(1)|endif
au SourceCmd *.vmb if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|call vimball#Vimball(1)|close|else|call vimball#Vimball(1)|endif au BufEnter *.vmb,*.vmb.gz,*.vmb.bz2,*.vmb.zip,*.vmb.xz setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|if line('$') > 1|call vimball#ShowMesg(0,"Source this file to extract it! (:so %)")|endif
au SourceCmd *.vmb.gz,*.vmb.bz2,*.vmb.zip,*.vmb.xz let s:origfile=expand("%")|if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|endif|call vimball#Decompress(expand("<amatch>"))|so %|if s:origfile!=expand("<afile>")|close|endif
au SourceCmd *.vmb if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|call vimball#Vimball(1)|close|else|call vimball#Vimball(1)|endif
augroup END
" ===================================================================== " =====================================================================
" Restoration And Modelines: {{{1 " Restoration And Modelines: {{{1

View File

@@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: C " Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2016 Feb 08 " Last Change: 2016 Apr 10
" Quit when a (custom) syntax file was already loaded " Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax") if exists("b:current_syntax")
@@ -248,6 +248,10 @@ if !exists("c_no_c99") " ISO C99
syn keyword cType _Bool bool _Complex complex _Imaginary imaginary syn keyword cType _Bool bool _Complex complex _Imaginary imaginary
syn keyword cType int8_t int16_t int32_t int64_t syn keyword cType int8_t int16_t int32_t int64_t
syn keyword cType uint8_t uint16_t uint32_t uint64_t syn keyword cType uint8_t uint16_t uint32_t uint64_t
if !exists("c_no_bsd")
" These are BSD specific.
syn keyword cType u_int8_t u_int16_t u_int32_t u_int64_t
endif
syn keyword cType int_least8_t int_least16_t int_least32_t int_least64_t syn keyword cType int_least8_t int_least16_t int_least32_t int_least64_t
syn keyword cType uint_least8_t uint_least16_t uint_least32_t uint_least64_t syn keyword cType uint_least8_t uint_least16_t uint_least32_t uint_least64_t
syn keyword cType int_fast8_t int_fast16_t int_fast32_t int_fast64_t syn keyword cType int_fast8_t int_fast16_t int_fast32_t int_fast64_t

View File

@@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: mysql " Language: mysql
" Maintainer: Kenneth J. Pronovici <pronovic@ieee.org> " Maintainer: Kenneth J. Pronovici <pronovic@ieee.org>
" Last Change: $LastChangedDate: 2010-04-22 09:48:02 -0500 (Thu, 22 Apr 2010) $ " Last Change: $LastChangedDate: 2016-04-11 10:31:04 -0500 (Mon, 11 Apr 2016) $
" Filenames: *.mysql " Filenames: *.mysql
" URL: ftp://cedar-solutions.com/software/mysql.vim " URL: ftp://cedar-solutions.com/software/mysql.vim
" Note: The definitions below are taken from the mysql user manual as of April 2002, for version 3.23 " Note: The definitions below are taken from the mysql user manual as of April 2002, for version 3.23
@@ -18,7 +18,7 @@ endif
syn case ignore syn case ignore
" General keywords which don't fall into other categories " General keywords which don't fall into other categories
syn keyword mysqlKeyword action add after aggregate all alter as asc auto_increment avg avg_row_length syn keyword mysqlKeyword action add after aggregate all alter as asc auto_increment avg_row_length
syn keyword mysqlKeyword both by syn keyword mysqlKeyword both by
syn keyword mysqlKeyword cascade change character check checksum column columns comment constraint create cross syn keyword mysqlKeyword cascade change character check checksum column columns comment constraint create cross
syn keyword mysqlKeyword current_date current_time current_timestamp syn keyword mysqlKeyword current_date current_time current_timestamp
@@ -30,7 +30,7 @@ syn keyword mysqlKeyword global grant grants group
syn keyword mysqlKeyword having heap high_priority hosts hour hour_minute hour_second syn keyword mysqlKeyword having heap high_priority hosts hour hour_minute hour_second
syn keyword mysqlKeyword identified ignore index infile inner insert insert_id into isam syn keyword mysqlKeyword identified ignore index infile inner insert insert_id into isam
syn keyword mysqlKeyword join syn keyword mysqlKeyword join
syn keyword mysqlKeyword key keys kill last_insert_id leading left limit lines load local lock logs long syn keyword mysqlKeyword key keys kill last_insert_id leading left limit lines load local lock logs long
syn keyword mysqlKeyword low_priority syn keyword mysqlKeyword low_priority
syn keyword mysqlKeyword match max_rows middleint min_rows minute minute_second modify month myisam syn keyword mysqlKeyword match max_rows middleint min_rows minute minute_second modify month myisam
syn keyword mysqlKeyword natural no syn keyword mysqlKeyword natural no
@@ -64,6 +64,9 @@ syn match mysqlNumber "\<0x[abcdefABCDEF0-9]*\>"
" User variables " User variables
syn match mysqlVariable "@\a*[A-Za-z0-9]*\([._]*[A-Za-z0-9]\)*" syn match mysqlVariable "@\a*[A-Za-z0-9]*\([._]*[A-Za-z0-9]\)*"
" Escaped column names
syn match mysqlEscaped "`[^`]*`"
" Comments (c-style, mysql-style and modified sql-style) " Comments (c-style, mysql-style and modified sql-style)
syn region mysqlComment start="/\*" end="\*/" syn region mysqlComment start="/\*" end="\*/"
syn match mysqlComment "#.*" syn match mysqlComment "#.*"
@@ -84,14 +87,14 @@ syn sync ccomment mysqlComment
" The second problem is that some of these keywords are included in " The second problem is that some of these keywords are included in
" function names. For instance, year() is part of the name of the " function names. For instance, year() is part of the name of the
" dayofyear() function, and the dec keyword (no parenthesis) is part of " dayofyear() function, and the dec keyword (no parenthesis) is part of
" the name of the decode() function. " the name of the decode() function.
syn keyword mysqlType tinyint smallint mediumint int integer bigint syn keyword mysqlType tinyint smallint mediumint int integer bigint
syn keyword mysqlType date datetime time bit bool syn keyword mysqlType date datetime time bit bool
syn keyword mysqlType tinytext mediumtext longtext text syn keyword mysqlType tinytext mediumtext longtext text
syn keyword mysqlType tinyblob mediumblob longblob blob syn keyword mysqlType tinyblob mediumblob longblob blob
syn region mysqlType start="float\W" end="."me=s-1 syn region mysqlType start="float\W" end="."me=s-1
syn region mysqlType start="float$" end="."me=s-1 syn region mysqlType start="float$" end="."me=s-1
syn region mysqlType start="float(" end=")" contains=mysqlNumber,mysqlVariable syn region mysqlType start="float(" end=")" contains=mysqlNumber,mysqlVariable
syn region mysqlType start="double\W" end="."me=s-1 syn region mysqlType start="double\W" end="."me=s-1
syn region mysqlType start="double$" end="."me=s-1 syn region mysqlType start="double$" end="."me=s-1
@@ -139,12 +142,12 @@ syn region mysqlFlow start="if(" end=")" contains=ALL
" "
" I'm leery of just defining keywords for functions, since according to the MySQL manual: " I'm leery of just defining keywords for functions, since according to the MySQL manual:
" "
" Function names do not clash with table or column names. For example, ABS is a " Function names do not clash with table or column names. For example, ABS is a
" valid column name. The only restriction is that for a function call, no spaces " valid column name. The only restriction is that for a function call, no spaces
" are allowed between the function name and the `(' that follows it. " are allowed between the function name and the `(' that follows it.
" "
" This means that if I want to highlight function names properly, I have to use a " This means that if I want to highlight function names properly, I have to use a
" region to define them, not just a keyword. This will probably cause the syntax file " region to define them, not just a keyword. This will probably cause the syntax file
" to load more slowly, but at least it will be 'correct'. " to load more slowly, but at least it will be 'correct'.
syn region mysqlFunction start="abs(" end=")" contains=ALL syn region mysqlFunction start="abs(" end=")" contains=ALL
@@ -154,6 +157,7 @@ syn region mysqlFunction start="ascii(" end=")" contains=ALL
syn region mysqlFunction start="asin(" end=")" contains=ALL syn region mysqlFunction start="asin(" end=")" contains=ALL
syn region mysqlFunction start="atan(" end=")" contains=ALL syn region mysqlFunction start="atan(" end=")" contains=ALL
syn region mysqlFunction start="atan2(" end=")" contains=ALL syn region mysqlFunction start="atan2(" end=")" contains=ALL
syn region mysqlFunction start="avg(" end=")" contains=ALL
syn region mysqlFunction start="benchmark(" end=")" contains=ALL syn region mysqlFunction start="benchmark(" end=")" contains=ALL
syn region mysqlFunction start="bin(" end=")" contains=ALL syn region mysqlFunction start="bin(" end=")" contains=ALL
syn region mysqlFunction start="bit_and(" end=")" contains=ALL syn region mysqlFunction start="bit_and(" end=")" contains=ALL

View File

@@ -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 12, 2016 " Last Change: Apr 11, 2016
" Version: 146 " Version: 147
" 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)
@@ -539,13 +539,20 @@ endif
" Synchronization: {{{1 " Synchronization: {{{1
" ================ " ================
if !exists("sh_minlines") if !exists("g:sh_minlines")
let sh_minlines = 200 let s:sh_minlines = 200
else
let s:sh_minlines= g:sh_minlines
endif endif
if !exists("sh_maxlines") if !exists("g:sh_maxlines")
let sh_maxlines = 2 * sh_minlines let s:sh_maxlines = 2*s:sh_minlines
if s:sh_maxlines < 25
let s:sh_maxlines= 25
endif
else
let s:sh_maxlines= g:sh_maxlines
endif endif
exec "syn sync minlines=" . sh_minlines . " maxlines=" . sh_maxlines exec "syn sync minlines=" . s:sh_minlines . " maxlines=" . s:sh_maxlines
syn sync match shCaseEsacSync grouphere shCaseEsac "\<case\>" syn sync match shCaseEsacSync grouphere shCaseEsac "\<case\>"
syn sync match shCaseEsacSync groupthere shCaseEsac "\<esac\>" syn sync match shCaseEsacSync groupthere shCaseEsac "\<esac\>"
syn sync match shDoSync grouphere shDo "\<do\>" syn sync match shDoSync grouphere shDo "\<do\>"

View File

@@ -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: Mar 07, 2016 " Last Change: Apr 11, 2016
" Version: 93 " Version: 94
" 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
@@ -83,10 +83,14 @@ else
let s:tex_conceal= g:tex_conceal let s:tex_conceal= g:tex_conceal
endif endif
if !exists("g:tex_superscripts") if !exists("g:tex_superscripts")
let g:tex_superscripts= "[0-9a-zA-W.,:;+-<>/()=]" let s:tex_superscripts= "[0-9a-zA-W.,:;+-<>/()=]"
else
let s:tex_superscripts= g:tex_superscripts
endif endif
if !exists("g:tex_subscripts") if !exists("g:tex_subscripts")
let g:tex_subscripts= "[0-9aehijklmnoprstuvx,+-/().]" let s:tex_subscripts= "[0-9aehijklmnoprstuvx,+-/().]"
else
let s:tex_subscripts= g:tex_subscripts
endif endif
" Determine whether or not to use "*.sty" mode {{{1 " Determine whether or not to use "*.sty" mode {{{1
@@ -1049,7 +1053,7 @@ if has("conceal") && &enc == 'utf-8'
endif endif
" s:SuperSub: " s:SuperSub:
fun! s:SuperSub(group,leader,pat,cchar) fun! s:SuperSub(group,leader,pat,cchar)
if a:pat =~# '^\\' || (a:leader == '\^' && a:pat =~# g:tex_superscripts) || (a:leader == '_' && a:pat =~# g:tex_subscripts) if a:pat =~# '^\\' || (a:leader == '\^' && a:pat =~# s:tex_superscripts) || (a:leader == '_' && a:pat =~# s:tex_subscripts)
" call Decho("SuperSub: group<".a:group."> leader<".a:leader."> pat<".a:pat."> cchar<".a:cchar.">") " call Decho("SuperSub: group<".a:group."> leader<".a:leader."> pat<".a:pat."> cchar<".a:cchar.">")
exe 'syn match '.a:group." '".a:leader.a:pat."' contained conceal cchar=".a:cchar exe 'syn match '.a:group." '".a:leader.a:pat."' contained conceal cchar=".a:cchar
exe 'syn match '.a:group."s '".a:pat ."' contained conceal cchar=".a:cchar.' nextgroup='.a:group.'s' exe 'syn match '.a:group."s '".a:pat ."' contained conceal cchar=".a:cchar.' nextgroup='.a:group.'s'