doc; vim-patch.sh

Also include missing changes from:
06d2d38ab7
26852128a2
This commit is contained in:
Justin M. Keyes 2016-10-19 15:43:04 +02:00
parent fb503d73da
commit f96dfae52f
6 changed files with 27 additions and 6 deletions

View File

@ -4943,6 +4943,7 @@ A jump table for the options with a short description can be found at |Q_op|.
keymap/ key mapping files |mbyte-keymap| keymap/ key mapping files |mbyte-keymap|
lang/ menu translations |:menutrans| lang/ menu translations |:menutrans|
menu.vim GUI menus |menu.vim| menu.vim GUI menus |menu.vim|
pack/ packages |:packadd|
plugin/ plugin scripts |write-plugin| plugin/ plugin scripts |write-plugin|
print/ files for printing |postscript-print-encoding| print/ files for printing |postscript-print-encoding|
spell/ spell checking files |spell| spell/ spell checking files |spell|
@ -4969,6 +4970,8 @@ A jump table for the options with a short description can be found at |Q_op|.
ordering. This is for preferences to overrule or add to the ordering. This is for preferences to overrule or add to the
distributed defaults or system-wide settings (rarely needed). distributed defaults or system-wide settings (rarely needed).
More entries are added when using |packages|.
Note that, unlike 'path', no wildcards like "**" are allowed. Normal Note that, unlike 'path', no wildcards like "**" are allowed. Normal
wildcards are allowed, but can significantly slow down searching for wildcards are allowed, but can significantly slow down searching for
runtime files. For speed, use as few items as possible and avoid runtime files. For speed, use as few items as possible and avoid

View File

@ -223,6 +223,8 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
pack/*/opt/{name} ~ pack/*/opt/{name} ~
The directory is added to 'runtimepath' if it wasn't The directory is added to 'runtimepath' if it wasn't
there yet. there yet.
If the directory pack/*/opt/{name}/after exists it is
added at the end of 'runtimepath'.
Note that {name} is the directory name, not the name Note that {name} is the directory name, not the name
of the .vim file. All the files matching the pattern of the .vim file. All the files matching the pattern
@ -492,6 +494,9 @@ To load packages earlier, so that 'runtimepath' gets updated: >
This also works when loading plugins is disabled. The automatic loading will This also works when loading plugins is disabled. The automatic loading will
only happen once. only happen once.
If the package has an "after" directory, that directory is added to the end of
'runtimepath', so that anything there will be loaded later.
Using a single plugin and loading it automatically ~ Using a single plugin and loading it automatically ~

View File

@ -198,7 +198,8 @@ argument.
-Z Restricted mode. All commands that make use of an external -Z Restricted mode. All commands that make use of an external
shell are disabled. This includes suspending with CTRL-Z, shell are disabled. This includes suspending with CTRL-Z,
":sh", filtering, the system() function, backtick expansion, ":sh", filtering, the system() function, backtick expansion,
delete(), rename(), mkdir(), writefile(), libcall(), etc. delete(), rename(), mkdir(), writefile(), libcall(),
jobstart(), etc.
*-e* *-e*
-e Start Vim in Ex mode |Q|. -e Start Vim in Ex mode |Q|.

View File

@ -105,6 +105,10 @@ Some `CTRL-SHIFT-...` key chords are distinguished from `CTRL-...` variants
Options: Options:
'statusline' supports unlimited alignment sections 'statusline' supports unlimited alignment sections
'tabline' %@Func@foo%X can call any function on mouse-click
Variables:
|v:windowid| is always available (for use by external UIs)
Commands: Commands:
|:CheckHealth| |:CheckHealth|
@ -112,7 +116,10 @@ Commands:
|:Man| is available by default, with many improvements such as completion |:Man| is available by default, with many improvements such as completion
Functions: Functions:
|dictwatcheradd()| notifies a callback whenever a |Dict| is modified
|dictwatcherdel()|
|execute()| works with |:redir| |execute()| works with |:redir|
|msgpackdump()|, |msgpackparse()| provide msgpack de/serialization
Events: Events:
|TabNew| |TabNew|

View File

@ -123,7 +123,6 @@ function! s:Match_wrapper(word, forward, mode) range
" Thanks to Preben "Peppe" Guldberg and Bram Moolenaar for this suggestion! " Thanks to Preben "Peppe" Guldberg and Bram Moolenaar for this suggestion!
if (match_words != s:last_words) || (&mps != s:last_mps) || if (match_words != s:last_words) || (&mps != s:last_mps) ||
\ exists("b:match_debug") \ exists("b:match_debug")
let s:last_words = match_words
let s:last_mps = &mps let s:last_mps = &mps
" The next several lines were here before " The next several lines were here before
" BF started messing with this script. " BF started messing with this script.
@ -135,6 +134,7 @@ function! s:Match_wrapper(word, forward, mode) range
\ '\/\*:\*\/,#\s*if\%(def\)\=:#\s*else\>:#\s*elif\>:#\s*endif\>' \ '\/\*:\*\/,#\s*if\%(def\)\=:#\s*else\>:#\s*elif\>:#\s*endif\>'
" s:all = pattern with all the keywords " s:all = pattern with all the keywords
let match_words = match_words . (strlen(match_words) ? "," : "") . default let match_words = match_words . (strlen(match_words) ? "," : "") . default
let s:last_words = match_words
if match_words !~ s:notslash . '\\\d' if match_words !~ s:notslash . '\\\d'
let s:do_BR = 0 let s:do_BR = 0
let s:pat = match_words let s:pat = match_words

View File

@ -124,7 +124,7 @@ assign_commit_details() {
patch_file="vim-${vim_version}.patch" patch_file="vim-${vim_version}.patch"
} }
# Patch surgery: # Patch surgery
preprocess_patch() { preprocess_patch() {
local file="$1" local file="$1"
local nvim="nvim -u NORC -i NONE --headless" local nvim="nvim -u NORC -i NONE --headless"
@ -134,8 +134,8 @@ preprocess_patch() {
na_src="$na_src"'\|if_lua\|if_mzsch\|if_olepp\|if_ole\|if_perl\|if_py\|if_ruby\|if_tcl\|if_xcmdsrv' na_src="$na_src"'\|if_lua\|if_mzsch\|if_olepp\|if_ole\|if_perl\|if_py\|if_ruby\|if_tcl\|if_xcmdsrv'
2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/src/\S*\<\%('${na_src}'\)@norm! d/\v(^diff)|%$ ' +w +q "$file" 2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/src/\S*\<\%('${na_src}'\)@norm! d/\v(^diff)|%$ ' +w +q "$file"
# Remove todo.txt, version*.txt, tags # Remove channel.txt, netbeans.txt, os_*.txt, todo.txt, version*.txt, tags
local na_doc='todo\.txt\|version\d\.txt\|tags' local na_doc='channel\.txt\|netbeans\.txt\|os_\w\+\.txt\|todo\.txt\|version\d\.txt\|tags'
2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/runtime/doc/\%('${na_doc}'\)@norm! d/\v(^diff)|%$ ' +w +q "$file" 2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/runtime/doc/\%('${na_doc}'\)@norm! d/\v(^diff)|%$ ' +w +q "$file"
# Remove some testdir/Make_*.mak files # Remove some testdir/Make_*.mak files
@ -143,7 +143,12 @@ preprocess_patch() {
2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/src/testdir/\%('${na_src_testdir}'\)@norm! d/\v(^diff)|%$ ' +w +q "$file" 2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/src/testdir/\%('${na_src_testdir}'\)@norm! d/\v(^diff)|%$ ' +w +q "$file"
# Rename src/ paths to src/nvim/ # Rename src/ paths to src/nvim/
LC_ALL=C sed -e 's/\( [ab]\/src\)/\1\/nvim/g' "$file" > "$file".tmp && mv "$file".tmp "$file" LC_ALL=C sed -e 's/\( [ab]\/src\)/\1\/nvim/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
# Rename path to matchit plugin.
LC_ALL=C sed -e 's@\( [ab]/runtime\)/pack/dist/opt/matchit/\(plugin/matchit.vim\)@\1/\2@g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
} }
get_vim_patch() { get_vim_patch() {