Skip to content

Commit

Permalink
Update runtime files
Browse files Browse the repository at this point in the history
  • Loading branch information
brammool committed Mar 14, 2020
1 parent 965fd8d commit b17893a
Show file tree
Hide file tree
Showing 14 changed files with 253 additions and 119 deletions.
34 changes: 24 additions & 10 deletions runtime/doc/eval.txt
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 22
*eval.txt* For Vim version 8.2. Last change: 2020 Mar 14


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -4357,6 +4357,8 @@ feedkeys({string} [, {mode}]) *feedkeys()*
'L' Lowlevel input. Only works for Unix or when using the
GUI. Keys are used as if they were coming from the
terminal. Other flags are not used. *E980*
When a CTRL-C interrupts it sets the internal
"got_int" flag.
'i' Insert the string instead of appending (see above).
'x' Execute commands until typeahead is empty. This is
similar to using ":normal!". You can call feedkeys()
Expand Down Expand Up @@ -5829,6 +5831,15 @@ has({feature}) The result is a Number, which is 1 if the feature {feature} is
supported, zero otherwise. The {feature} argument is a
string. See |feature-list| below.
Also see |exists()|.
Note that to skip code that has a syntax error when the
feature is not available, Vim may skip the rest of the line
and miss a following `endif`. Therfore put the `endif` on a
separate line: >
if has('feature')
let x = this->breaks->without->the->feature
endif
< If the `endif` would be in the second line it would not be
found.


has_key({dict}, {key}) *has_key()*
Expand Down Expand Up @@ -8612,7 +8623,12 @@ setpos({expr}, {list})
setqflist({list} [, {action} [, {what}]]) *setqflist()*
Create or replace or add to the quickfix list.

When {what} is not present, use the items in {list}. Each
If the optional {what} dictionary argument is supplied, then
only the items listed in {what} are set. The first {list}
argument is ignored. See below for the supported items in
{what}.

When {what} is not present, the items in {list} or used. Each
item must be a dictionary. Non-dictionary items in {list} are
ignored. Each dictionary item can contain the following
entries:
Expand Down Expand Up @@ -8667,10 +8683,7 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
freed. To add a new quickfix list at the end of the stack,
set "nr" in {what} to "$".

If the optional {what} dictionary argument is supplied, then
only the items listed in {what} are set. The first {list}
argument is ignored. The following items can be specified in
{what}:
The following items can be specified in dictionary {what}:
context quickfix list context. See |quickfix-context|
efm errorformat to use when parsing text from
"lines". If this is not present, then the
Expand Down Expand Up @@ -10486,11 +10499,12 @@ winlayout([{tabnr}]) *winlayout()*
" Two horizontally split windows
:echo winlayout()
['col', [['leaf', 1000], ['leaf', 1001]]]
" Three horizontally split windows, with two
" vertically split windows in the middle window
" The second tab page, with three horizontally split
" windows, with two vertically split windows in the
" middle window
:echo winlayout(2)
['col', [['leaf', 1002], ['row', ['leaf', 1003],
['leaf', 1001]]], ['leaf', 1000]]
['col', [['leaf', 1002], ['row', [['leaf', 1003],
['leaf', 1001]]], ['leaf', 1000]]]
<
Can also be used as a |method|: >
GetTabnr()->winlayout()
Expand Down
8 changes: 4 additions & 4 deletions runtime/doc/options.txt
@@ -1,4 +1,4 @@
*options.txt* For Vim version 8.2. Last change: 2020 Feb 14
*options.txt* For Vim version 8.2. Last change: 2020 Mar 02


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -4646,8 +4646,8 @@ A jump table for the options with a short description can be found at |Q_op|.
be able to execute Normal mode commands.
This is the opposite of the 'keymap' option, where characters are
mapped in Insert mode.
Also consider resetting 'langremap' to avoid 'langmap' applies to
characters resulting from a mapping.
Also consider setting 'langremap' to off, to prevent 'langmap' from
applying to characters resulting from a mapping.
This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons.

Expand Down Expand Up @@ -4712,7 +4712,7 @@ A jump table for the options with a short description can be found at |Q_op|.
'langnoremap' is set to the inverted value, and the other way around.

*'langremap'* *'lrm'* *'nolangremap'* *'nolrm'*
'langremap' 'lrm' boolean (default on, reset in |defaults.vim|)
'langremap' 'lrm' boolean (default on, set to off in |defaults.vim|)
global
{only available when compiled with the |+langmap|
feature}
Expand Down
6 changes: 3 additions & 3 deletions runtime/doc/textprop.txt
@@ -1,4 +1,4 @@
*textprop.txt* For Vim version 8.2. Last change: 2020 Feb 22
*textprop.txt* For Vim version 8.2. Last change: 2020 Mar 05


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -133,8 +133,8 @@ prop_add({lnum}, {col}, {props})
to {lnum}, this is a zero-width text property
bufnr buffer to add the property to; when omitted
the current buffer is used
id user defined ID for the property; when omitted
zero is used
id user defined ID for the property; must be a
number; when omitted zero is used
type name of the text property type
All fields except "type" are optional.

Expand Down
53 changes: 43 additions & 10 deletions runtime/doc/todo.txt
@@ -1,4 +1,4 @@
*todo.txt* For Vim version 8.2. Last change: 2020 Mar 01
*todo.txt* For Vim version 8.2. Last change: 2020 Mar 13


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -38,10 +38,23 @@ browser use: https://github.com/vim/vim/issues/1234
*known-bugs*
-------------------- Known bugs and current work -----------------------

When starting a terminal popup the size defaults to nothing. Should have a
sensible default, e.g. four lines of 30 chars.
call popup_create(term_start(&shell, #{hidden: 1}), #{})

Test_terminal_in_popup() still sometimes fails with "All" instead of "Top".

Patch to fix vimtutor problems on Windows (Wu Yongwei, #5774)

Additional tests for menu. (Yegappan, #5760)
Introduces menu_info(), check that out.

Vim9 script:
- better implementation for partial and tests.
- Add vim9 commands to index, so that vim.vim will get them automatically.
See email from Charles March 11 2020.
- "func" inside "vim9script" doesn't work? (Ben Jackson, #5670)
- "echo Func()" is an error if Func() does not return anything.
- better implementation for partial and tests for that.
- Make "g:imported = Export.exported" work in Vim9 script.
- Make Foo.Bar() work to call the dict function. (#5676)
- make "let var: string" work in a vim9script.
Expand Down Expand Up @@ -80,7 +93,14 @@ Vim9 script:
LOADVARARG (varags idx)

Popup windows:
- popup_clear() and popup_close() should close the terminal popup, and
make the buffer hidden. #5745
- With terminal in popup, allow for popup_hide() to temporarily hide it.?
- With some sequence get get hidden finished terminal buffer. (#5768)
- Fire some autocommand event after a new popup window was created and
positioned? PopupNew? Could be used to set some options or move it out of
the way. (#5737)
However, it may also cause trouble, changing the popup of another plugin.
- Use popup (or popup menu) for command line completion
- When using a popup for the info of a completion menu, and there is not
enough space, let the popup overlap with the menu. (#4544)
Expand All @@ -94,7 +114,7 @@ Popup windows:
- Figure out the size and position better if wrapping inserts indent

Text properties:
- prop_find() may not find text property at start of the line. (#5663)
- "cc" does not call inserted_bytes(). (Axel Forsman, #5763)
- Get E685 with a sequence of commands. (#5674)
- Combining text property with 'cursorline' does not always work (Billie
Cleek, #5533)
Expand Down Expand Up @@ -165,7 +185,7 @@ Terminal emulator window:

Error numbers available:
E451, E452, E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
E654, E856, E857, E860, E861, E900
E654, E856, E857, E861, E900

Patch to fix drawing error with DirectX. (James Grant, #5688)
Causes flicker on resizing.
Expand All @@ -174,10 +194,15 @@ Patch to use more FOR_ALL_ macros and use them. (Yegappan Lakshmanan, #5339)

Patch to explain use of "%" in :!. (David Briscoe, #5591)

Patch to improve Windows terminal support. (Nobuhiro Takasaki, #5546)
Ready to include.

Patch to add "-d" to xxd. (#5616)

Patch to add Turkish manual. (Emir Sarı, #5641)

File marks merging has duplicates since 7.4.1925. (Ingo Karkat, #5733)

Running test_gui and test_gui_init with Motif sometimes kills the window
manager. Problem with Motif? Now test_gui crashes in submenu_change().
Athena is OK.
Expand All @@ -191,21 +216,25 @@ Needs better docs. Is there a better name?

undo result wrong: Masato Nishihata, #4798

Patch for Template string: #4491. New pull: #4634
Ready to include? Review the code.

When 'lazyredraw' is set sometimes the title is not updated.
(Jason Franklin, 2020 Feb 3) Looks like a race condition.

Strange sequence of BufWipeout and BufNew events while doing omni-complete.
(Paul Jolly, #5656)
Get BufDelete without preceding BufNew. (Paul Jolly, #5694)
Later more requests for what to track.
Should we add new events that don't allow any buffer manipulation?
Really only for dealing with appearing and disappearing buffers, load and
unload.
BufWinenter event not fired when saving unnamed buffer. (Paul Jolly, #5655)
Another spurious BufDelete. (Dani Dickstein, #5701)

Patch to add function to return the text used in the quickfix window.
(Yegappan, #5465)

Patch for Template string: #4491. New pull: #4634
Implementation is too inefficient, avoid using lambda.

Patch to add readdirex() (Ken Takata, #5619)

Request to support <Cmd> in mappings, similar to how Neovim does this.
Expand Down Expand Up @@ -248,6 +277,12 @@ match, total matches). (#5631)
Patch to provide search stats in a variable, so that it can be used in the
statusline. (Fujiwara Takuya, #4446)

Patch for ambiguous width characters in libvterm on MS-Windows 10.
(Nobuhiro Takasaki, #4411)

behavior of i_CTRl-R_CTRL-R differs from documentation. (Paul Desmond Parker,
#5771)

":bnext" in a help buffer is supposed to go to the next help buffer, but it
goes to any buffer, and then :bnext skips help buffers, since they are
unlisted. (#4478)
Expand Down Expand Up @@ -305,6 +340,7 @@ Patch to add per-tabpage and per-window previous directory: "lcd -" and "tcd
Does not build with MinGW out of the box:
- _stat64 is not defined, need to use "struct stat" in vim.h
- WINVER conflict, should use 0x0600 by default?
- INT_MAX not defined: need to include <limits.h> in vim.h

Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May
13, #2910) Can't reproduce?
Expand Down Expand Up @@ -431,9 +467,6 @@ with the first character (like what happens with a last line that doesn't
fit). Display "<<<" at the start of the first visible line (like "@@@" is
displayed in the last line). (Arseny Nasokin, #5154)

Patch for ambiguous width characters in libvterm on MS-Windows 10.
(Nobuhiro Takasaki, #4411)

Window size changes after closing a tab. (#4741)

Problem with colors in terminal window. (Jason Franklin, 2019 May 12)
Expand Down
6 changes: 4 additions & 2 deletions runtime/doc/vim9.txt
@@ -1,4 +1,4 @@
*vim9.txt* For Vim version 8.2. Last change: 2020 Feb 29
*vim9.txt* For Vim version 8.2. Last change: 2020 Mar 01


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -213,7 +213,7 @@ few exceptions.
blob non-empty
list non-empty (different from JavaScript)
dictionary non-empty (different from JavaScript)
funcref when not NULL
func when not NULL
partial when not NULL
special v:true
job when not NULL
Expand Down Expand Up @@ -301,6 +301,8 @@ The following builtin types are supported:
(a: type, b: type): type
job
channel
func
partial

Not supported yet:
tuple<a: type, b: type, ...>
Expand Down
9 changes: 7 additions & 2 deletions runtime/ftplugin/yaml.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: YAML (YAML Ain't Markup Language)
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2008-07-09
" Previous Maintainer: Nikolai Weibull <now@bitwi.se> (inactive)
" Last Change: 2020 Mar 02

if exists("b:did_ftplugin")
finish
Expand All @@ -16,5 +16,10 @@ let b:undo_ftplugin = "setl com< cms< et< fo<"
setlocal comments=:# commentstring=#\ %s expandtab
setlocal formatoptions-=t formatoptions+=croql

if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0
let b:undo_ftplugin ..= " sw< sts<"
setlocal shiftwidth=2 softtabstop=2
endif

let &cpo = s:cpo_save
unlet s:cpo_save
20 changes: 17 additions & 3 deletions runtime/ftplugin/zsh.vim
Expand Up @@ -2,7 +2,7 @@
" Language: Zsh shell script
" Maintainer: Christian Brabandt <cb@256bit.org>
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2017-11-22
" Latest Revision: 2020-01-10
" License: Vim (see :h license)
" Repository: https://github.com/chrisbra/vim-zsh

Expand All @@ -14,10 +14,24 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim

let b:undo_ftplugin = "setl com< cms< fo<"

setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql

let b:undo_ftplugin = "setl com< cms< fo< "

if executable('zsh')
if !has('gui_running') && executable('less')
command! -buffer -nargs=1 RunHelp silent exe '!zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw!
elseif has('terminal')
command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"'
else
command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"')
endif
setlocal keywordprg=:RunHelp
setlocal makeprg=zsh\ -n\ --\ %:S
setlocal errorformat=%f:\ line\ %l:\ %m
let b:undo_ftplugin .= 'keywordprg< errorformat< makeprg<'
endif

let b:match_words = ',\<if\>:\<elif\>:\<else\>:\<fi\>'
\ . ',\<case\>:^\s*([^)]*):\<esac\>'
\ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
Expand Down
2 changes: 1 addition & 1 deletion runtime/indent/php.vim
Expand Up @@ -3,7 +3,7 @@
" Author: John Wellesz <John.wellesz (AT) gmail (DOT) com>
" URL: https://www.2072productions.com/vim/indent/php.vim
" Home: https://github.com/2072/PHP-Indenting-for-VIm
" Last Change: 2019 Jully 21st
" Last Change: 2020 Mar 05
" Version: 1.70
"
"
Expand Down
2 changes: 1 addition & 1 deletion runtime/scripts.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types in scripts
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2019 Jun 25
" Last change: 2020 Mar 06

" This file is called by an autocommand for every file that has just been
" loaded into a buffer. It checks if the type of file can be recognized by
Expand Down
4 changes: 2 additions & 2 deletions runtime/syntax/help.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Vim help file
" Maintainer: Bram Moolenaar (Bram@vim.org)
" Last Change: 2019 Nov 26
" Last Change: 2020 Mar 06

" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
Expand All @@ -11,7 +11,7 @@ endif
let s:cpo_save = &cpo
set cpo&vim

syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()_]*[ \t]\+\*"me=e-1
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()_]*\ze\(\s\+\*\|$\)"
syn match helpSectionDelim "^===.*===$"
syn match helpSectionDelim "^---.*--$"
if has("conceal")
Expand Down

0 comments on commit b17893a

Please sign in to comment.