Skip to content

Commit

Permalink
Update runtime files.
Browse files Browse the repository at this point in the history
  • Loading branch information
brammool committed Jul 15, 2018
1 parent 2196bca commit b477af2
Show file tree
Hide file tree
Showing 29 changed files with 1,543 additions and 400 deletions.
15 changes: 14 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -51,4 +51,17 @@ Look in the header of the file for the name and email address.
The maintainer will take care of issues and send updates to Bram for
distribution with Vim.

If the maintainer does not react, contact the vim-dev maillist.
If the maintainer does not respond, contact the vim-dev maillist.


# Translations

Translating messages and runtime files is very much appreciated! These things can be translated:
* Messages in Vim, see src/po/README.txt
* Menus, see runtime/lang/README.txt
* Vim tutor, see runtime/tutor/README.txt
* Manual pages, see runtime/doc/*.1 for examples
* Desktop icon, see runtime/vim.desktop and runtime/gvim.desktop

The help files can be translated and made available separately.
See https://www.vim.org/translations.php for examples.
2 changes: 1 addition & 1 deletion runtime/doc/autocmd.txt
Expand Up @@ -345,7 +345,7 @@ Name triggered by ~
when popup menu is not visible
|TextChangedP| after a change was made to the text in Insert mode
when popup menu visible
|TextYankPost| after text is yanked or deleted
|TextYankPost| after text has been yanked or deleted

|ColorSchemePre| before loading a color scheme
|ColorScheme| after loading a color scheme
Expand Down
13 changes: 7 additions & 6 deletions runtime/doc/eval.txt
Expand Up @@ -4936,6 +4936,9 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
:let list_is_on = gettabwinvar(1, 2, '&list')
:echo "myvar = " . gettabwinvar(3, 1, 'myvar')
<
To obtain all window-local variables use: >
gettabwinvar({tabnr}, {winnr}, '&')
getwininfo([{winid}]) *getwininfo()*
Returns information about windows as a List with Dictionaries.

Expand All @@ -4949,8 +4952,6 @@ getwininfo([{winid}]) *getwininfo()*
Each List item is a Dictionary with the following entries:
bufnr number of buffer in the window
height window height (excluding winbar)
winbar 1 if the window has a toolbar, 0
otherwise
loclist 1 if showing a location list
{only with the +quickfix feature}
quickfix 1 if quickfix or location list window
Expand All @@ -4961,16 +4962,15 @@ getwininfo([{winid}]) *getwininfo()*
variables a reference to the dictionary with
window-local variables
width window width
winbar 1 if the window has a toolbar, 0
otherwise
wincol leftmost screen column of the window,
col from |win_screenpos()|
winid |window-ID|
winnr window number
winrow topmost screen column of the window,
row from |win_screenpos()|

To obtain all window-local variables use: >
gettabwinvar({tabnr}, {winnr}, '&')
getwinpos([{timeout}]) *getwinpos()*
The result is a list with two numbers, the result of
getwinposx() and getwinposy() combined:
Expand Down Expand Up @@ -11580,7 +11580,7 @@ The sandbox is also used for the |:sandbox| command.

These items are not allowed in the sandbox:
- changing the buffer text
- defining or changing mapping, autocommands, functions, user commands
- defining or changing mapping, autocommands, user commands
- setting certain options (see |option-summary|)
- setting certain v: variables (see |v:var|) *E794*
- executing a shell command
Expand All @@ -11602,6 +11602,7 @@ location. Insecure in this context are:
- sourcing a .vimrc or .exrc in the current directory
- while executing in the sandbox
- value coming from a modeline
- executing a function that was defined in the sandbox

Note that when in the sandbox and saving an option value and restoring it, the
option will still be marked as it was set in the sandbox.
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/gui_w32.txt
Expand Up @@ -442,7 +442,7 @@ with the Intellimouse driver 2.2 and when "Universal Scrolling" is turned on.

XPM support *w32-xpm-support*

Gvim can be build on MS-Windows with support for XPM files. |+xpm_w32|
GVim can be build on MS-Windows with support for XPM files. |+xpm_w32|
See the Make_mvc.mak file for instructions, search for XPM.

To try out if XPM support works do this: >
Expand Down
11 changes: 6 additions & 5 deletions runtime/doc/motion.txt
Expand Up @@ -1019,12 +1019,13 @@ These commands are not marks themselves, but jump to a mark:
==============================================================================
8. Jumps *jump-motions*

A "jump" is one of the following commands: "'", "`", "G", "/", "?", "n",
"N", "%", "(", ")", "[[", "]]", "{", "}", ":s", ":tag", "L", "M", "H" and
the commands that start editing a new file. If you make the cursor "jump"
with one of these commands, the position of the cursor before the jump is
A "jump" is a command that normally moves the cursor several lines away. If
you make the cursor "jump" the position of the cursor before the jump is
remembered. You can return to that position with the "''" and "``" command,
unless the line containing that position was changed or deleted.
unless the line containing that position was changed or deleted. The
following commands are "jump" commands: "'", "`", "G", "/", "?", "n", "N",
"%", "(", ")", "[[", "]]", "{", "}", ":s", ":tag", "L", "M", "H" and the
commands that start editing a new file.

*CTRL-O*
CTRL-O Go to [count] Older cursor position in jump list
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/netbeans.txt
Expand Up @@ -409,9 +409,9 @@ defineAnnoType typeNum typeName tooltip glyphFile fg bg
Vim will define a sign for the annotation.
When color is a number, this is the "#rrggbb" Red, Green and
Blue values of the color (see |gui-colors|) and the
highlighting is only defined for GVim.
highlighting is only defined for gVim.
When color is a name, this color is defined both for Vim
running in a color terminal and for GVim.
running in a color terminal and for gVim.
When both "fg" and "bg" are "none" no line highlighting is
used (new in version 2.1).
When "glyphFile" is empty, no text sign is used (new in
Expand Down
2 changes: 2 additions & 0 deletions runtime/doc/starting.txt
Expand Up @@ -1594,6 +1594,8 @@ VIMINFO FILE NAME *viminfo-file-name*
- The "-i" Vim argument can be used to set another file name, |-i|. When the
file name given is "NONE" (all uppercase), no viminfo file is ever read or
written. Also not for the commands below!
- The 'viminfofile' option can be used like the "-i" argument. In fact, the
value form the "-i" argument is stored in the 'viminfofile' option.
- For the commands below, another file name can be given, overriding the
default and the name given with 'viminfo' or "-i" (unless it's NONE).

Expand Down
36 changes: 21 additions & 15 deletions runtime/doc/todo.txt
Expand Up @@ -38,7 +38,9 @@ browser use: https://github.com/vim/vim/issues/1234
*known-bugs*
-------------------- Known bugs and current work -----------------------

testdir: remove use of lua.vim from makefiles and test1.in
Crash when ui_breakcheck() called from regexec() calls regexec() recursively.
(Andy Massimino, #3175)
Make regexp work recursively, store all globals in "rex"?

Prompt buffer:
- Add a command line history.
Expand Down Expand Up @@ -88,12 +90,17 @@ On Win32 when not in the console and t_Co >= 256, allow using 'tgc'.
Errors found with random data:
heap-buffer-overflow in alist_add (#2472)

Patch to fix that +packages is always in output of :version.
(thinca, #3198) reported by Takuya Fujiwara

More warnings from static analysis:
https://lgtm.com/projects/g/vim/vim/alerts/?mode=list

Pasting foo} causes Vim to behave weird. (John Little, 2018 Jun 17)
Related to bracketed paste. I cannot reproduce it.

Patch replacing imp with importlib. (#3163)

Using ":file" in quickfix window during an autocommand doesn't work.
(Jason Franklin, 2018 May 23) Allow for using it when there is no argument.

Expand All @@ -105,8 +112,6 @@ Shafran, 2018 Jun 23, #3072) Proposed patch by Aidan, 2018 Jun 24.
Patch to set w_set_curswant when setting the cursor in language interfaces.
(David Hotham, 2018 Jun 22, #3060)

Patch for Lua 5.3. (Ken Takata, 2018 Jul 5, #3157)

Patch to make CTRL-W <CR> work properly in a quickfix window. (Jason Franklin,
2018 May 30)

Expand All @@ -127,6 +132,8 @@ Patch to make :help work for tags with a ?. (Hirohito Higashi, 2018 May 28)
Patch to adjust to DPI setting for GTK. (Roel van de Kraats, 2017 Nov 20,
#2357)

Patch to fix window size when using VTP. (Nobuhiro Takasaki, #3164)

Compiler warnings (geeknik, 2017 Oct 26):
- signed integer overflow in do_sub() (#2249)
- signed integer overflow in get_address() (#2248)
Expand All @@ -146,6 +153,10 @@ Patch to stack and pop the window title and icon. (IWAMOTO Kouichi, 2018 Jun
need to use X11 calls. This returns "<Esc>]l{title}<Esc>\".
Using title stack probably works better.

When a function is defined in the sandbox (with :function or as a lambda)
always execute it in the sandbox. (#3182)
Remove "safe" argument from call_vim_function(), it's always FALSE.

Make balloon_show() work outside of 'balloonexpr'? Users expect it to work:
#2948. (related to #1512?)
On Win32 it stops showing, because showState is already ShS_SHOWING.
Expand Down Expand Up @@ -178,6 +189,8 @@ script or function.
Universal solution to detect if t_RS is working, using cursor position.
Koichi Iwamoto, #2126

Patch to fix profiling condition lines. (Ozaki Kiichi,, 2017 Dec 26, #2499)

When using a menu item while the "more" prompt is displayed doesn't work well.
E.g. after using help->version. Have a key that ends the "more" prompt and
does nothing otherwise?
Expand Down Expand Up @@ -249,6 +262,7 @@ sequence of these commands. (Andy Stewart, 2018 Mar 16)
ch_sendraw() with long string does not try to read in between, which may cause
a deadlock if the reading side is waiting for the write to finish. (Nate
Bosch, 2018 Jan 13, #2548)
Perhaps just make chunks of 1024 bytes?

Patch to include a cfilter plugin to filter quickfix/location lists.
(Yegappan Lakshmanan, 2018 May 12)
Expand Down Expand Up @@ -406,9 +420,6 @@ Perhaps use a vimcontext / endvimcontext command block.
After using :noautocmd CursorMoved may still trigger. (Andy Stewart, 2017 Sep
13, #2084). Set old position after the command.

Illegal memory access, requires ASAN to see. (Dominique Pelle, 2015 Jul 28)
Still happens (2017 Jul 9)

When bracketed paste is used, pasting at the ":append" prompt does not get the
line breaks. (Ken Takata, 2017 Aug 22)

Expand Down Expand Up @@ -720,8 +731,6 @@ Does this also fix #1408 ?

Patch for 'cursorlinenr' option. (Ozaki Kiichi, 2016 Nov 30)

Patch to fix profiling condition lines. (Ozaki Kiichi,, 2017 Dec 26, #2499)

Patch to be able to separately map CTRL-H and BS on Windows.
(Linwei, 2017 Jul 11, #1833)

Expand Down Expand Up @@ -1018,9 +1027,6 @@ Added tests (James McCoy, 2016 Aug 3). Still needs more work.
Feature request: add the "al" text object, to manipulate a screen line.
Especially useful when using 'linebreak'

Access to uninitialized memory in match_backref() regexp_nda.c:4882
(Dominique Pelle, 2015 Nov 6)

":cd C:\Windows\System32\drivers\etc*" does not work, even though the
directory exists. (Sergio Gallelli, 2013 Dec 29)

Expand Down Expand Up @@ -1070,7 +1076,7 @@ Patch to add TagNotFound autocommand. (Anton Lindqvist, 2016 Feb 3)
Patch to add Error autocommand. (Anton Lindqvist, 2016 Feb 17)
Only remembers one error.

Gvim: when both Tab and CTRL-I are mapped, use CTRL-I not for Tab.
GVim: when both Tab and CTRL-I are mapped, use CTRL-I not for Tab.

Unexpected delay when using CTRL-O u. It's not timeoutlen.
(Gary Johnson, 2015 Aug 28)
Expand Down Expand Up @@ -1854,7 +1860,7 @@ accented character. (Tony Mechelynck, 2010 Apr 15)
Don't call check_restricted() for histadd(), setbufvar(), settabvar(),
setwinvar().

Patch for GVimExt to show an icon. (Dominik Riebeling, 2010 Nov 7)
Patch for gVimExt to show an icon. (Dominik Riebeling, 2010 Nov 7)

When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines
instead of one. (Constantin Pan, 2010 Sep 10)
Expand Down Expand Up @@ -2437,7 +2443,7 @@ go to Insert mode and add a few lines. Then backspacing every other time
moves the cursor instead of deleting. (Chris Kaiser, 2007 Sep 25)

Windows installer could add a "open in new tab of existing Vim" menu entry.
Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
GvimExt: patch to add "Edit with single Vim &tabbed" menu entry.
Just have two choices, always using one Vim and selecting between using an
argument list or opening each file in a separate tab.
(Erik Falor, 2008 May 21, 2008 Jun 26)
Expand Down Expand Up @@ -2513,7 +2519,7 @@ C++ indenting wrong with "=". (James Kanze, 2007 Jan 26)
When using --remote-silent and the file name matches 'wildignore' get an E479
error. without --remote-silent it works fine. (Ben Fritz, 2008 Jun 20)

Gvim: dialog for closing Vim should check if Vim is busy writing a file. Then
GVim: dialog for closing Vim should check if Vim is busy writing a file. Then
use a different dialog: "busy saving, really quit? yes / no".

Check other interfaces for changing curbuf in a wrong way. Patch like for
Expand Down
7 changes: 4 additions & 3 deletions runtime/doc/usr_09.txt
Expand Up @@ -5,9 +5,10 @@
Using the GUI


Vim works in an ordinary terminal. GVim can do the same things and a few
more. The GUI offers menus, a toolbar, scrollbars and other items. This
chapter is about these extra things that the GUI offers.
Vim works in an ordinary terminal, while gVim has a Graphical User Interface
(GUI). It can do the same things and a few more. The GUI offers menus, a
toolbar, scrollbars and other items. This chapter is about these extra things
that the GUI offers.

|09.1| Parts of the GUI
|09.2| Using the mouse
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/version5.txt
Expand Up @@ -2347,7 +2347,7 @@ Added *added-5.2*
Support for mapping numeric keypad +,-,*,/ keys. (Negri)
When not mapped, they produce the normal character.

Win32 GUI: When directory dropped on Gvim, cd there and edit new buffer.
Win32 GUI: When directory dropped on gVim, cd there and edit new buffer.
(Negri)

Win32 GUI: Made CTRL-Break work as interrupt, so that CTRL-C can be
Expand Down Expand Up @@ -7615,7 +7615,7 @@ VMS doesn't always have lstat(), added an #ifdef around it.

Added a few corrections for the Macintosh. (Axel Kielhorn)

Win32: Gvimext could not edit more than a few files at once, the length of the
Win32: GvimExt could not edit more than a few files at once, the length of the
argument was fixed.


Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/version6.txt
Expand Up @@ -2967,7 +2967,7 @@ DOS and Windows: Expanding *.vim also matched file.vimfoo. Expand path like
Unix to avoid problems with Windows dir functions. Merged the DOS and Win32
functions.

Win32: Gvimext could not edit more than a few files at once, the length of the
Win32: GvimExt could not edit more than a few files at once, the length of the
argument was fixed.

"ls -1 * | xargs vim" worked, but the input was in cooked mode. Now switch to
Expand Down

0 comments on commit b477af2

Please sign in to comment.