summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-26 21:33:31 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-26 21:33:31 +0200
commit68e6560b84f196c82e27a72669684d5506a3a837 (patch)
treea0652888fa60c92d0d6d8335880961437c76b9f3
parent20c023aee0ceafac9431fb8ab8d169747b5140dd (diff)
Update runtime files.
-rw-r--r--runtime/colors/tools/check_colors.vim127
-rw-r--r--runtime/doc/channel.txt7
-rw-r--r--runtime/doc/debugger.txt5
-rw-r--r--runtime/doc/doctags.c5
-rw-r--r--runtime/doc/eval.txt28
-rw-r--r--runtime/doc/gui.txt44
-rw-r--r--runtime/doc/help.txt2
-rw-r--r--runtime/doc/index.txt3
-rw-r--r--runtime/doc/message.txt5
-rw-r--r--runtime/doc/motion.txt1
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/pattern.txt4
-rw-r--r--runtime/doc/popup.txt40
-rw-r--r--runtime/doc/quickref.txt3
-rw-r--r--runtime/doc/repeat.txt5
-rw-r--r--runtime/doc/scroll.txt5
-rw-r--r--runtime/doc/syntax.txt7
-rw-r--r--runtime/doc/tags49
-rw-r--r--runtime/doc/terminal.txt5
-rw-r--r--runtime/doc/textprop.txt9
-rw-r--r--runtime/doc/todo.txt121
-rw-r--r--runtime/doc/usr_05.txt4
-rw-r--r--runtime/doc/usr_22.txt2
-rw-r--r--runtime/doc/usr_41.txt4
-rw-r--r--runtime/doc/usr_toc.txt15
-rw-r--r--runtime/doc/various.txt2
-rw-r--r--runtime/doc/version8.txt8520
-rw-r--r--runtime/doc/vi_diff.txt15
-rw-r--r--runtime/doc/windows.txt3
-rw-r--r--runtime/optwin.vim7
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim8
-rw-r--r--runtime/syntax/help.vim4
-rw-r--r--runtime/syntax/tmux.vim83
-rw-r--r--runtime/tutor/tutor.ko.utf-82
-rw-r--r--src/po/zh_CN.UTF-8.po2
-rw-r--r--src/po/zh_CN.cp936.po2
-rw-r--r--src/po/zh_CN.po2
37 files changed, 8925 insertions, 227 deletions
diff --git a/runtime/colors/tools/check_colors.vim b/runtime/colors/tools/check_colors.vim
index b1aefa1126..57b71b19db 100644
--- a/runtime/colors/tools/check_colors.vim
+++ b/runtime/colors/tools/check_colors.vim
@@ -1,11 +1,12 @@
-" This script tests a color scheme for some errors. Load the scheme and source
-" this script. e.g. :e colors/desert.vim | :so check_colors.vim
-" Will output possible errors.
+" This script tests a color scheme for some errors and lists potential errors.
+" Load the scheme and source this script, like this:
+" :edit colors/desert.vim | :so colors/tools/check_colors.vim
let s:save_cpo= &cpo
set cpo&vim
func! Test_check_colors()
+ let l:savedview = winsaveview()
call cursor(1,1)
let err={}
@@ -17,11 +18,69 @@ func! Test_check_colors()
endif
" 2) Check for some well-defined highlighting groups
- " Some items, check several groups, e.g. Diff, Spell
- let hi_groups = ['ColorColumn', 'Diff', 'ErrorMsg', 'Folded',
- \ 'FoldColumn', 'IncSearch', 'LineNr', 'ModeMsg', 'MoreMsg', 'NonText',
- \ 'Normal', 'Pmenu', 'Todo', 'Search', 'Spell', 'StatusLine', 'TabLine',
- \ 'Title', 'Visual', 'WarningMsg', 'WildMenu']
+ let hi_groups = [
+ \ 'ColorColumn',
+ \ 'Comment',
+ \ 'Conceal',
+ \ 'Constant',
+ \ 'Cursor',
+ \ 'CursorColumn',
+ \ 'CursorLine',
+ \ 'CursorLineNr',
+ \ 'DiffAdd',
+ \ 'DiffChange',
+ \ 'DiffDelete',
+ \ 'DiffText',
+ \ 'Directory',
+ \ 'EndOfBuffer',
+ \ 'Error',
+ \ 'ErrorMsg',
+ \ 'FoldColumn',
+ \ 'Folded',
+ \ 'Identifier',
+ \ 'Ignore',
+ \ 'IncSearch',
+ \ 'LineNr',
+ \ 'MatchParen',
+ \ 'ModeMsg',
+ \ 'MoreMsg',
+ \ 'NonText',
+ \ 'Normal',
+ \ 'Pmenu',
+ \ 'PmenuSbar',
+ \ 'PmenuSel',
+ \ 'PmenuThumb',
+ \ 'PreProc',
+ \ 'Question',
+ \ 'QuickFixLine',
+ \ 'Search',
+ \ 'SignColumn',
+ \ 'Special',
+ \ 'SpecialKey',
+ \ 'SpellBad',
+ \ 'SpellCap',
+ \ 'SpellLocal',
+ \ 'SpellRare',
+ \ 'Statement',
+ \ 'StatusLine',
+ \ 'StatusLineNC',
+ \ 'StatusLineTerm',
+ \ 'StatusLineTermNC',
+ \ 'TabLine',
+ \ 'TabLineFill',
+ \ 'TabLineSel',
+ \ 'Title',
+ \ 'Todo',
+ \ 'ToolbarButton',
+ \ 'ToolbarLine',
+ \ 'Type',
+ \ 'Underlined',
+ \ 'VertSplit',
+ \ 'Visual',
+ \ 'VisualNOS',
+ \ 'WarningMsg',
+ \ 'WildMenu',
+ \ ]
let groups={}
for group in hi_groups
if search('\c@suppress\s\+'.group, 'cnW')
@@ -30,6 +89,9 @@ func! Test_check_colors()
let groups[group] = 'Ignoring '.group
continue
endif
+ if search('hi\%[ghlight]!\= \+link \+'.group, 'cnW') " Linked group
+ continue
+ endif
if !search('hi\%[ghlight] \+'.group, 'cnW')
let groups[group] = 'No highlight definition for '.group
continue
@@ -43,12 +105,15 @@ func! Test_check_colors()
let groups[group] = 'Missing bg terminal color for '.group
continue
endif
- call search('hi\%[ghlight] \+'.group, 'cW')
- " only check in the current line
- if !search('guifg', 'cnW', line('.')) || !search('ctermfg', 'cnW', line('.'))
- " do not check for background colors, they could be intentionally left out
- let groups[group] = 'Missing fg definition for '.group
+ if !search('hi\%[ghlight] \+'.group. '.*guifg=', 'cnW')
+ let groups[group] = 'Missing guifg definition for '.group
+ continue
endif
+ if !search('hi\%[ghlight] \+'.group. '.*ctermfg=', 'cnW')
+ let groups[group] = 'Missing ctermfg definition for '.group
+ continue
+ endif
+ " do not check for background colors, they could be intentionally left out
call cursor(1,1)
endfor
let err['highlight'] = groups
@@ -91,15 +156,43 @@ func! Test_check_colors()
endif
" 7) Does not define filetype specific groups like vimCommand, htmlTag,
- let hi_groups = ['vim', 'html', 'python', 'sh', 'ruby']
+ let hi_groups = filter(getcompletion('', 'filetype'), { _,v -> v !~# '\%[no]syn\%(color\|load\|tax\)' })
+ let ft_groups = []
+ " let group = '\%('.join(hi_groups, '\|').'\)' " More efficient than a for loop, but less informative
for group in hi_groups
- let pat='\Chi\%[ghlight]\s*\zs'.group.'\w\+\>'
+ let pat='\Chi\%[ghlight]!\= *\%[link] \+\zs'.group.'\w\+\>\ze \+.' " Skips `hi clear`
+ if search(pat, 'cW')
+ call add(ft_groups, matchstr(getline('.'), pat))
+ endif
+ call cursor(1,1)
+ endfor
+ if !empty(ft_groups)
+ let err['filetype'] = get(err, 'filetype', 'Should not define: ') . join(uniq(sort(ft_groups)))
+ endif
+
+ " 8) Were debugPC and debugBreakpoint defined?
+ for group in ['debugPC', 'debugBreakpoint']
+ let pat='\Chi\%[ghlight]!\= *\%[link] \+\zs'.group.'\>'
if search(pat, 'cnW')
let line = search(pat, 'cW')
let err['filetype'] = get(err, 'filetype', 'Should not define: ') . matchstr(getline('.'), pat). ' '
endif
call cursor(1,1)
endfor
+
+ " 9) Normal should be defined first, not use reverse, fg or bg
+ call cursor(1,1)
+ let pat = 'hi\%[light] \+\%(link\|clear\)\@!\w\+\>'
+ call search(pat, 'cW') " Look for the first hi def, skipping `hi link` and `hi clear`
+ if getline('.') !~# '\m\<Normal\>'
+ let err['highlight']['Normal'] = 'Should be defined first'
+ elseif getline('.') =~# '\m\%(=\%(fg\|bg\)\)'
+ let err['highlight']['Normal'] = "Should not use 'fg' or 'bg'"
+ elseif getline('.') =~# '\m=\%(inv\|rev\)erse'
+ let err['highlight']['Normal'] = 'Should not use reverse mode'
+ endif
+
+ call winrestview(l:savedview)
let g:err = err
" print Result
@@ -107,11 +200,11 @@ func! Test_check_colors()
endfu
fu! Result(err)
- let do_roups = 0
+ let do_groups = 0
echohl Title|echomsg "---------------"|echohl Normal
for key in sort(keys(a:err))
if key is# 'highlight'
- let do_groups = 1
+ let do_groups = !empty(a:err[key])
continue
else
if a:err[key] !~ 'OK'
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index ea0274f401..632628a878 100644
--- a/runtime/doc/channel.txt
+++ b/runtime/doc/channel.txt
@@ -1,4 +1,4 @@
-*channel.txt* For Vim version 8.1. Last change: 2019 May 05
+*channel.txt* For Vim version 8.1. Last change: 2019 May 12
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -155,7 +155,10 @@ Use |ch_status()| to see if the channel could be opened.
func MyCloseHandler(channel)
< Vim will invoke callbacks that handle data before invoking
close_cb, thus when this function is called no more data will
- be passed to the callbacks.
+ be passed to the callbacks. However, if a callback causes Vim
+ to check for messages, the close_cb may be invoked while still
+ in the callback. The plugin must handle this somehow, it can
+ be useful to know that no more data is coming.
*channel-drop*
"drop" Specifies when to drop messages:
"auto" When there is no callback to handle a message.
diff --git a/runtime/doc/debugger.txt b/runtime/doc/debugger.txt
index cbf2009a5d..772aac0c34 100644
--- a/runtime/doc/debugger.txt
+++ b/runtime/doc/debugger.txt
@@ -1,4 +1,4 @@
-*debugger.txt* For Vim version 8.1. Last change: 2019 May 05
+*debugger.txt* For Vim version 8.1. Last change: 2019 May 12
VIM REFERENCE MANUAL by Gordon Prieur
@@ -87,7 +87,8 @@ This feature allows a debugger, or other external tool, to display dynamic
information based on where the mouse is pointing. The purpose of this feature
was to allow Sun's Visual WorkShop debugger to display expression evaluations.
However, the feature was implemented in as general a manner as possible and
-could be used for displaying other information as well.
+could be used for displaying other information as well. The functionality is
+limited though, for advanced popups see |popup-window|.
The Balloon Evaluation has some settable parameters too. For Motif the font
list and colors can be set via X resources (XmNballoonEvalFontList,
diff --git a/runtime/doc/doctags.c b/runtime/doc/doctags.c
index 53bf33c1d9..f0dea2c87d 100644
--- a/runtime/doc/doctags.c
+++ b/runtime/doc/doctags.c
@@ -1,7 +1,8 @@
/* vim:set ts=4 sw=4:
- * this program makes a tags file for vim_ref.txt
*
- * Usage: doctags vim_ref.txt vim_win.txt ... >tags
+ * This program makes a tags file for help text.
+ *
+ * Usage: doctags *.txt ... >tags
*
* A tag in this context is an identifier between stars, e.g. *c_files*
*/
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index e82cf32352..15ffed343b 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 8.1. Last change: 2019 May 09
+*eval.txt* For Vim version 8.1. Last change: 2019 May 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1190,8 +1190,9 @@ There must not be white space before or after the dot.
Examples: >
:let dict = {"one": 1, 2: "two"}
- :echo dict.one
- :echo dict .2
+ :echo dict.one " shows "1"
+ :echo dict.2 " shows "two"
+ :echo dict .2 " error because of space before the dot
Note that the dot is also used for String concatenation. To avoid confusion
always put spaces around the dot for String concatenation.
@@ -3507,7 +3508,7 @@ chdir({dir}) *chdir()*
Example: >
let save_dir = chdir(newdir)
- if save_dir
+ if save_dir != ""
" ... do some work
call chdir(save_dir)
endif
@@ -5126,7 +5127,7 @@ getloclist({nr} [, {what}]) *getloclist()*
In addition to the items supported by |getqflist()| in {what},
the following item is supported by |getloclist()|:
- filewinid id of the window used to display files
+ filewinid id of the window used to display files
from the location list. This field is
applicable only when called from a
location list window. See
@@ -6349,7 +6350,7 @@ listener_add({callback} [, {buf}]) *listener_add()*
was affected; this is a byte index, first
character has a value of one.
When lines are inserted the values are:
- lnum line below which the new line is added
+ lnum line above which the new line is added
end equal to "lnum"
added number of lines inserted
col 1
@@ -7336,6 +7337,8 @@ prop_remove({props} [, {lnum} [, {lnum-end}]])
all when TRUE remove all matching text properties,
not just the first one
A property matches when either "id" or "type" matches.
+ If buffer "bufnr" does not exist you get an error message.
+ If buffer 'bufnr" is not loaded then nothing happens.
Returns the number of properties that were removed.
@@ -10074,6 +10077,7 @@ timer_start({time}, {callback} [, {options}])
< This will invoke MyHandler() three times at 500 msec
intervals.
+ Not available in the |sandbox|.
{only available when compiled with the |+timers| feature}
timer_stop({timer}) *timer_stop()*
@@ -11019,7 +11023,7 @@ It is allowed to define another function inside a function body.
You can provide default values for positional named arguments. This makes
them optional for function calls. When a positional argument is not
specified at a call, the default expression is used to initialize it.
-This only works for functions declared with |function|, not for lambda
+This only works for functions declared with `:function`, not for lambda
expressions |expr-lambda|.
Example: >
@@ -11031,7 +11035,7 @@ Example: >
The argument default expressions are evaluated at the time of the function
call, not definition. Thus it is possible to use an expression which is
-invalid the moment the function is defined. The expressions are are also only
+invalid the moment the function is defined. The expressions are also only
evaluated when arguments are not specified during a call.
You can pass |v:none| to use the default expression. Note that this means you
@@ -11098,7 +11102,7 @@ This function can then be called with: >
*:cal* *:call* *E107* *E117*
:[range]cal[l] {name}([arguments])
Call a function. The name of the function and its arguments
- are as specified with |:function|. Up to 20 arguments can be
+ are as specified with `:function`. Up to 20 arguments can be
used. The returned value is discarded.
Without a range and for functions that accept a range, the
function is called once. When a range is given the cursor is
@@ -11152,9 +11156,9 @@ Using an autocommand ~
This is introduced in the user manual, section |41.14|.
The autocommand is useful if you have a plugin that is a long Vim script file.
-You can define the autocommand and quickly quit the script with |:finish|.
+You can define the autocommand and quickly quit the script with `:finish`.
That makes Vim startup faster. The autocommand should then load the same file
-again, setting a variable to skip the |:finish| command.
+again, setting a variable to skip the `:finish` command.
Use the FuncUndefined autocommand event with a pattern that matches the
function(s) to be defined. Example: >
@@ -13001,7 +13005,7 @@ instead of failing in mysterious ways. >
has('vimscript-1')
:scriptversion 2
-< String concatenation with "." is not supported, use ".." instead.
+< String concatenation with "." is not supported, use ".." instead.
This avoids the ambiguity using "." for Dict member access and
floating point numbers. Now ".5" means the number 0.5.
>
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt
index c24d672738..d83954bc42 100644
--- a/runtime/doc/gui.txt
+++ b/runtime/doc/gui.txt
@@ -1,4 +1,4 @@
-*gui.txt* For Vim version 8.1. Last change: 2019 May 05
+*gui.txt* For Vim version 8.1. Last change: 2019 May 20
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1046,7 +1046,7 @@ GUIFONT *gui-font*
'guifont' is the option that tells Vim what font to use. In its simplest form
the value is just one font name. It can also be a list of font names
separated with commas. The first valid font is used. When no valid font can
-be found you will get an error message.
+be found you will get an error message.
On systems where 'guifontset' is supported (X11) and 'guifontset' is not
empty, then 'guifont' is not used. See |xfontset|.
@@ -1112,10 +1112,9 @@ For the Win32 GUI *E244* *E245*
cXX - character set XX. Valid charsets are: ANSI, ARABIC, BALTIC,
CHINESEBIG5, DEFAULT, EASTEUROPE, GB2312, GREEK, HANGEUL,
HEBREW, JOHAB, MAC, OEM, RUSSIAN, SHIFTJIS, SYMBOL, THAI,
- TURKISH, VIETNAMESE ANSI and BALTIC. Normally you would use
- "cDEFAULT".
+ TURKISH and VIETNAMESE. Normally you would use "cDEFAULT".
qXX - quality XX. Valid quality names are: PROOF, DRAFT, ANTIALIASED,
- NONANTIALIASED, CLEARTYPE, DEFAULT. Normally you would use
+ NONANTIALIASED, CLEARTYPE and DEFAULT. Normally you would use
"qDEFAULT".
Some quality values are not supported in legacy OSs.
- A '_' can be used in the place of a space, so you don't need to use
@@ -1139,30 +1138,28 @@ substitution.
GUIFONTWIDE *gui-fontwide*
When not empty, 'guifontwide' specifies a comma-separated list of fonts to be
-used for double-width characters. The first font that can be loaded is
-used.
+used for double-width characters. The first font that can be loaded is used.
Note: The size of these fonts must be exactly twice as wide as the one
-specified with 'guifont' and the same height. If there is a mismatch then
-the text will not be drawn correctly.
+specified with 'guifont' and the same height. If there is a mismatch then the
+text will not be drawn correctly.
All GUI versions but GTK+:
-'guifontwide' is only used when 'encoding' is set to "utf-8" and
-'guifontset' is empty or invalid.
-When 'guifont' is set and a valid font is found in it and
-'guifontwide' is empty Vim will attempt to find a matching
-double-width font and set 'guifontwide' to it.
+'guifontwide' is only used when 'encoding' is set to "utf-8" and 'guifontset'
+is empty or invalid.
+When 'guifont' is set and a valid font is found in it and 'guifontwide' is
+empty Vim will attempt to find a matching double-width font and set
+'guifontwide' to it.
GTK+ GUI only: *guifontwide_gtk*
-If set and valid, 'guifontwide' is always used for double width
-characters, even if 'encoding' is not set to "utf-8".
+If set and valid, 'guifontwide' is always used for double width characters,
+even if 'encoding' is not set to "utf-8".
Vim does not attempt to find an appropriate value for 'guifontwide'
-automatically. If 'guifontwide' is empty Pango/Xft will choose the
-font for characters not available in 'guifont'. Thus you do not need
-to set 'guifontwide' at all unless you want to override the choice
-made by Pango/Xft.
+automatically. If 'guifontwide' is empty Pango/Xft will choose the font for
+characters not available in 'guifont'. Thus you do not need to set
+'guifontwide' at all unless you want to override the choice made by Pango/Xft.
Windows +multibyte only: *guifontwide_win_mbyte*
@@ -1181,7 +1178,8 @@ This section describes other features which are related to the GUI.
get "<Modifiers-Key>".
- In the GUI, the modifiers SHIFT, CTRL, and ALT (or META) may be used within
- mappings of special keys and mouse events. E.g.: :map <M-LeftDrag> <LeftDrag>
+ mappings of special keys and mouse events.
+ E.g.: :map <M-LeftDrag> <LeftDrag>
- In the GUI, several normal keys may have modifiers in mappings etc, these
are <Space>, <Tab>, <NL>, <CR>, <Esc>.
@@ -1218,8 +1216,8 @@ http://www.lexikan.com/mincho.htm
For the X11 GUI the external commands are executed inside the gvim window.
See |gui-pty|.
-WARNING: Executing an external command from the X11 GUI will not always
-work. "normal" commands like "ls", "grep" and "make" mostly work fine.
+WARNING: Executing an external command from the X11 GUI will not always work.
+"normal" commands like "ls", "grep" and "make" mostly work fine.
Commands that require an intelligent terminal like "less" and "ispell" won't
work. Some may even hang and need to be killed from another terminal. So be
careful!
diff --git a/runtime/doc/help.txt b/runtime/doc/help.txt
index c2c9c1c887..ef5394d70a 100644
--- a/runtime/doc/help.txt
+++ b/runtime/doc/help.txt
@@ -1,4 +1,4 @@
-*help.txt* For Vim version 8.1. Last change: 2019 Jan 17
+*help.txt* For Vim version 8.1. Last change: 2019 May 12
VIM - main help file
k
diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt
index 6ae5fccea0..5aab7174d5 100644
--- a/runtime/doc/index.txt
+++ b/runtime/doc/index.txt
@@ -1,4 +1,4 @@
-*index.txt* For Vim version 8.1. Last change: 2019 May 09
+*index.txt* For Vim version 8.1. Last change: 2019 May 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1484,6 +1484,7 @@ tag command action ~
|:perldo| :perld[o] execute Perl command for each line
|:pop| :po[p] jump to older entry in tag stack
|:popup| :popu[p] popup a menu by name
+|:popupclear| :popupc[lear] remove all popup windows
|:ppop| :pp[op] ":pop" in preview window
|:preserve| :pre[serve] write all text to swap file
|:previous| :prev[ious] go to previous file in argument list
diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt
index 5e47df1b08..13422650ea 100644
--- a/runtime/doc/message.txt
+++ b/runtime/doc/message.txt
@@ -1,4 +1,4 @@
-*message.txt* For Vim version 8.1. Last change: 2019 May 07
+*message.txt* For Vim version 8.1. Last change: 2019 May 18
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -247,6 +247,9 @@ format of the file. The file will not be marked unmodified. If you care
about the loss of information, set the 'fileencoding' option to another value
that can handle the characters in the buffer and write again. If you don't
care, you can abandon the buffer or reset the 'modified' option.
+If there is a backup file, when 'writebackup' or 'backup' is set, it will not
+be deleted, so you can move it back into place if you want to discard the
+changes.
*E302* >
Could not rename swap file
diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt
index 64b1fbfc22..97a0fae561 100644
--- a/runtime/doc/motion.txt
+++ b/runtime/doc/motion.txt
@@ -53,6 +53,7 @@ or change text. The following operators are available:
|!| ! filter through an external program
|=| = filter through 'equalprg' or C-indenting if empty
|gq| gq text formatting
+ |gw| gw text formatting with no cursor movement
|g?| g? ROT13 encoding
|>| > shift right
|<| < shift left
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index fd2ae6a6ef..949d82f9c4 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 8.1. Last change: 2019 May 23
+*options.txt* For Vim version 8.1. Last change: 2019 May 25
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 8babf0b236..f9d5d51fea 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -61,11 +61,11 @@ explanations are in chapter 27 |usr_27.txt|.
n Repeat the latest "/" or "?" [count] times.
If the cursor doesn't move the search is repeated with
count + 1.
- |last-pattern| {Vi: no count}
+ |last-pattern|
*N*
N Repeat the latest "/" or "?" [count] times in
- opposite direction. |last-pattern| {Vi: no count}
+ opposite direction. |last-pattern|
*star* *E348* *E349*
* Search forward for the [count]'th occurrence of the
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index cc9b7d179e..3b17f77953 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -1,4 +1,4 @@
-*popup.txt* For Vim version 8.1. Last change: 2019 May 21
+*popup.txt* For Vim version 8.1. Last change: 2019 May 26
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -25,7 +25,7 @@ windows and is under control of a plugin. You cannot edit the text in the
popup window like with regular windows.
A popup window can be used for such things as:
-- briefly show a message without changing the command line
+- briefly show a message without overwriting the command line
- prompt the user with a dialog
- display contextual information while typing
- give extra information for auto-completion
@@ -42,11 +42,14 @@ The default color used is "Pmenu". If you prefer something else use the
A popup window has a window-ID like other windows, but behaves differently.
The size can be up to the whole Vim window and it overlaps other windows.
-It contains a buffer, and that buffer is always associated with the popup
-window. The window cannot be used in Normal, Visual or Insert mode, it does
-not get keyboard focus. You can use functions like `setbufline()` to change
-the text in the buffer. There are more differences from how this window and
-buffer behave compared to regular windows and buffers, see |popup-buffer|.
+Popup windows can also overlap each other.
+
+The popup window contains a buffer, and that buffer is always associated with
+the popup window. The window cannot be used in Normal, Visual or Insert mode,
+it does not get keyboard focus. You can use functions like `setbufline()` to
+change the text in the buffer. There are more differences from how this
+window and buffer behave compared to regular windows and buffers, see
+|popup-buffer|.
If this is not what you are looking for, check out other popup functionality:
- popup menu, see |popup-menu|
@@ -55,9 +58,9 @@ If this is not what you are looking for, check out other popup functionality:
WINDOW POSITION AND SIZE *popup-position*
-The height of the window is normally equal to the number of lines in the
-buffer. It can be limited with the "maxheight" property. You can use empty
-lines to increase the height.
+The height of the window is normally equal to the number of, possibly
+wrapping, lines in the buffer. It can be limited with the "maxheight"
+property. You can use empty lines to increase the height.
The width of the window is normally equal to the longest line in the buffer.
It can be limited with the "maxwidth" property. You can use spaces to
@@ -81,11 +84,13 @@ Probably 2. is the best choice.
IMPLEMENTATION:
- Code is in popupwin.c
-- handle screen resize in screenalloc().
-- Support tab-local popup windows, use tp_first_popupwin and
- first_tab_popupwin. Swap like with firstwin/curwin.
+- Implement list of lines with text properties
+- Implement popup_hide() and popup_show()
+- Implement filter.
+- Handle screen resize in screenalloc().
- Make redrawing more efficient and avoid flicker.
-- implement all the unimplemented features.
+- Properly figure out the size and position.
+- Implement all the unimplemented options and features.
==============================================================================
@@ -93,9 +98,7 @@ IMPLEMENTATION:
THIS IS UNDER DESIGN - ANYTHING MAY STILL CHANGE
-Proposal and discussion on issue #4063: https://github.com/vim/vim/issues/4063
-
-[functions to be moved to eval.txt later, keep list of functions here]
+[functions to be moved to eval.txt later, keep overview of functions here]
popup_create({text}, {options}) *popup_create()*
Open a popup window showing {text}, which is either:
@@ -257,6 +260,9 @@ manipulation is restricted:
- 'undolevels' is -1: no undo at all
TODO: more
+It is possible to change these options, but anything might break then, so
+better leave them alone.
+
The window does have a cursor position, but the cursor is not displayed.
Options can be set on the window with `setwinvar()`, e.g.: >
diff --git a/runtime/doc/quickref.txt b/runtime/doc/quickref.txt
index 2718f5c30c..c2241992cb 100644
--- a/runtime/doc/quickref.txt
+++ b/runtime/doc/quickref.txt
@@ -1,4 +1,4 @@
-*quickref.txt* For Vim version 8.1. Last change: 2019 Apr 28
+*quickref.txt* For Vim version 8.1. Last change: 2019 May 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -798,6 +798,7 @@ Short explanation of each option: *option-list*
'menuitems' 'mis' maximum number of items in a menu
'mkspellmem' 'msm' memory used before |:mkspell| compresses the tree
'modeline' 'ml' recognize modelines at start or end of file
+'modelineexpr' 'mle' allow setting expression options from a modeline
'modelines' 'mls' number of lines checked for modelines
'modifiable' 'ma' changes to the text are not possible
'modified' 'mod' buffer has been modified
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index 9c701ff135..cc2cb7d95b 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -1,4 +1,4 @@
-*repeat.txt* For Vim version 8.1. Last change: 2019 May 07
+*repeat.txt* For Vim version 8.1. Last change: 2019 May 22
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -178,7 +178,7 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
:so[urce] {file} Read Ex commands from {file}.