Skip to content

Commit 7bfaf06

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 0410900 + d371bbe commit 7bfaf06

40 files changed

+4515
-2388
lines changed

runtime/doc/diff.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*diff.txt* For Vim version 8.0. Last change: 2017 Sep 02
1+
*diff.txt* For Vim version 8.0. Last change: 2017 Sep 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -10,7 +10,7 @@ eight versions of the same file.
1010

1111
The basics are explained in section |08.7| of the user manual.
1212

13-
1. Starting diff mode |vimdiff|
13+
1. Starting diff mode |start-vimdiff|
1414
2. Viewing diffs |view-diffs|
1515
3. Jumping to diffs |jumpto-diffs|
1616
4. Copying diffs |copy-diffs|
@@ -19,7 +19,7 @@ The basics are explained in section |08.7| of the user manual.
1919
{not in Vi}
2020

2121
==============================================================================
22-
1. Starting diff mode
22+
1. Starting diff mode *start-vimdiff*
2323

2424
The easiest way to start editing in diff mode is with the "vimdiff" command.
2525
This starts Vim as usual, and additionally sets up for viewing the differences

runtime/doc/gui.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui.txt* For Vim version 8.0. Last change: 2017 Sep 19
1+
*gui.txt* For Vim version 8.0. Last change: 2017 Sep 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -796,11 +796,17 @@ make the items look like icons.
796796
If the items do not fit then the last ones cannot be used. The toolbar does
797797
not wrap.
798798

799+
Note that Vim may be in any mode when executing these commands. The menu
800+
should be defined for Normal mode and will be executed without changing the
801+
current mode. Thus if the current window is in Visual mode and the menu
802+
command does not intentionally change the mode, Vim will remain in Visual
803+
mode. Best is to use `:nnoremenu` to avoid side effects.
804+
799805
Example for debugger tools: >
800-
amenu 1.10 WinBar.Step :Step<CR>
801-
amenu 1.20 WinBar.Next :Next<CR>
802-
amenu 1.30 WinBar.Finish :Finish<CR>
803-
amenu 1.40 WinBar.Cont :Continue<CR>
806+
nnoremenu 1.10 WinBar.Step :Step<CR>
807+
nnoremenu 1.20 WinBar.Next :Next<CR>
808+
nnoremenu 1.30 WinBar.Finish :Finish<CR>
809+
nnoremenu 1.40 WinBar.Cont :Continue<CR>
804810
<
805811
The window toolbar uses the ToolbarLine and ToolbarButton highlight groups.
806812

runtime/doc/map.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.0. Last change: 2017 Sep 17
1+
*map.txt* For Vim version 8.0. Last change: 2017 Sep 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -29,7 +29,7 @@ manual.
2929
1. Key mapping *key-mapping* *mapping* *macro*
3030

3131
Key mapping is used to change the meaning of typed keys. The most common use
32-
is to define a sequence commands for a function key. Example: >
32+
is to define a sequence of commands for a function key. Example: >
3333
3434
:map <F2> a<C-R>=strftime("%c")<CR><Esc>
3535

runtime/doc/options.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2017 Sep 16
1+
*options.txt* For Vim version 8.0. Last change: 2017 Sep 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4504,8 +4504,8 @@ A jump table for the options with a short description can be found at |Q_op|.
45044504
1 over-the-spot style
45054505
See: |xim-input-style|
45064506

4507-
For a long time on-the-spot sytle had been used in GTK version of vim,
4508-
however, it is known that it causes troubles when using mappings,
4507+
For a long time on-the-spot style had been used in the GTK version of
4508+
vim, however, it is known that it causes troubles when using mappings,
45094509
|single-repeat|, etc. Therefore over-the-spot style becomes the
45104510
default now. This should work fine for most people, however if you
45114511
have any problem with it, try using on-the-spot style.
@@ -8466,7 +8466,7 @@ A jump table for the options with a short description can be found at |Q_op|.
84668466
Save the whole buffer for undo when reloading it. This applies to the
84678467
":e!" command and reloading for when the buffer changed outside of
84688468
Vim. |FileChangedShell|
8469-
The save only happens when this options is negative or when the number
8469+
The save only happens when this option is negative or when the number
84708470
of lines is smaller than the value of this option.
84718471
Set this option to zero to disable undo for a reload.
84728472

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8565,6 +8565,7 @@ star pattern.txt /*star*
85658565
starstar editing.txt /*starstar*
85668566
starstar-wildcard editing.txt /*starstar-wildcard*
85678567
start-of-file pattern.txt /*start-of-file*
8568+
start-vimdiff diff.txt /*start-vimdiff*
85688569
starting starting.txt /*starting*
85698570
starting-amiga starting.txt /*starting-amiga*
85708571
starting.txt starting.txt /*starting.txt*

runtime/doc/terminal.txt

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 8.0. Last change: 2017 Sep 17
1+
*terminal.txt* For Vim version 8.0. Last change: 2017 Sep 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -81,7 +81,14 @@ themselves (like Vim does).
8181

8282
To change the keys you type use terminal mode mappings, see |:tmap|.
8383
These are defined like any mapping, but apply only when typing keys that are
84-
sent to the job running in the terminal.
84+
sent to the job running in the terminal. For example, to make Escape switch
85+
to Terminal-Normal mode: >
86+
tnoremap <Esc> <C-W>N
87+
88+
After opening the terminal window and setting 'buftype' to "terminal" the
89+
BufWinEnter autocommand event is triggered. This makes it possible to set
90+
options specifically for the window and buffer. Example: >
91+
au BufWinEnter * if &buftype == 'terminal' | setlocal bufhidden=hide | endif
8592
8693
8794
Size and color ~
@@ -328,7 +335,7 @@ Load the plugin with this command: >
328335
packadd termdebug
329336
< *:Termdebug*
330337
To start debugging use `:TermDebug` folowed by the command name, for example: >
331-
:TermDebug vim
338+
:Termdebug vim
332339
333340
This opens two windows:
334341
gdb window A terminal window in which "gdb vim" is executed. Here you
@@ -352,6 +359,62 @@ When the debugger ends, typically by typing "quit" in the gdb window, the two
352359
opened windows are closed.
353360

354361

362+
Example session ~
363+
364+
Start in the Vim "src" directory and build Vim: >
365+
% make
366+
Start Vim: >
367+
% ./vim
368+
Load the termdebug plugin and start debugging Vim: >
369+
:packadd termdebug
370+
:Termdebug vim
371+
You should now have three windows:
372+
source - where you started, has a window toolbar with buttons
373+
gdb - you can type gdb commands here
374+
program - the executed program will use this window
375+
You can use CTRL-W CTRL-W or the mouse to move focus between windows.
376+
Put focus on the gdb window and type: >
377+
break ex_help
378+
run
379+
Vim will start running in the program window. Put focus there and type: >
380+
:help gui
381+
Gdb will run into the ex_help breakpoint. The source window now shows the
382+
ex_cmds.c file. A ">>" marker will appear where the breakpoint was set. The
383+
line where the debugger stopped is highlighted. You can now step through the
384+
program. Let's use the mouse: click on the "Next" button in the window
385+
toolbar. You will see the highlighting move as the debugger executes a line
386+
of source code.
387+
388+
Click "Next" a few times until the for loop is highlighted. Put the cursor on
389+
the end of "eap->arg", then click "Eval" in the toolbar. You will see this
390+
displayed:
391+
"eap->arg": 0x555555e68855 "gui" ~
392+
This way you can inspect the value of local variables. You can also focus the
393+
gdb window and use a "print" command, e.g.: >
394+
print *eap
395+
396+
Now go back to the source window and put the cursor on the first line after
397+
the for loop, then type: >
398+
:Break
399+
You will see a ">>" marker appear, this indicates the new breakpoint. Now
400+
click "Cont" in the toolbar and the code until the breakpoint will be
401+
executed.
402+
403+
You can type more advanced commands in the gdb window. For example, type: >
404+
watch curbuf
405+
Now click "Cont" in the toolbar (or type "cont" in the gdb window). Execution
406+
will now continue until the value of "curbuf" changes, which is in do_ecmd().
407+
To remove this watchpoint again type in the gdb window: >
408+
delete 3
409+
410+
You can see the stack by typing in the gdb window: >
411+
where
412+
Move through the stack frames, e.g. with: >
413+
frame 3
414+
The source window will show the code, at the point where the call was made to
415+
a deeper level.
416+
417+
355418
Stepping through code ~
356419

357420
Put focus on the gdb window to type commands there. Some common ones are:
@@ -410,7 +473,7 @@ To change the name of the gdb command, set the "termdebugger" variable before
410473
invoking `:Termdebug`: >
411474
let termdebugger = "mygdb"
412475
Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI
413-
interface.
476+
interface. This probably requires gdb version 7.12.
414477

415478
The color of the signs can be adjusted with these highlight groups:
416479
- debugPC the current position
@@ -429,6 +492,10 @@ vertical split: >
429492
let g:termdebug_wide = 163
430493
This will set &columns to 163 when :Termdebug is used. The value is restored
431494
when quitting the debugger.
495+
If g:termdebug_wide is set and &Columns is already larger than
496+
g:termdebug_wide then a vertical split will be used without changing &columns.
497+
Set it to 1 to get a vertical split without every changing &columns (useful
498+
for when the terminal can't be resized by Vim).
432499

433500

434501

runtime/doc/todo.txt

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2017 Sep 19
1+
*todo.txt* For Vim version 8.0. Last change: 2017 Sep 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -35,17 +35,16 @@ entered there will not be repeated below, unless there is extra information.
3535
*known-bugs*
3636
-------------------- Known bugs and current work -----------------------
3737

38+
MS-Windows build and installer improvements:
39+
- Switch to VC2015 for building. (Ken Takata, 2017 Sep 21)
40+
Check resulting binary on XP.
41+
- Patch to install 32 and 64 bit Gvimext and related dll files. (Ken Takata,
42+
2017 Sep 23, #2144)
43+
3844
:term hangs in Athena and Motif. (Kazunobu Kuriyama, 2017 Sep 17)
3945

40-
Always use FEAT_WINDOWS:
41-
May get rid of:
42-
#define W_WINCOL(wp) (wp->w_wincol)
43-
#define W_WIDTH(wp) (wp->w_width)
44-
#define W_ENDCOL(wp) (wp->w_wincol + wp->w_width)
45-
#define W_VSEP_WIDTH(wp) (wp->w_vsep_width)
46-
#define W_STATUS_HEIGHT(wp) (wp->w_status_height)
47-
#define W_WINROW(wp) (wp->w_winrow)
48-
# define ALIST(win) (win)->w_alist
46+
Universal solution to detect if t_RS is working, using cursor position.
47+
Koichi Iwamoto, #2126
4948

5049
No maintainer for Vietnamese translations.
5150
No maintainer for Simplified Chinese translations.
@@ -70,6 +69,8 @@ Terminal emulator window:
7069
with the expected screenshot. Set t_Co to 256.
7170

7271
+channel:
72+
- Add a separate timeout for opening a socket. Currently it's fixed at 50
73+
msec, which is too small for a remote connection. (tverniquet, #2130)
7374
- Try out background make plugin:
7475
https://github.com/AndrewVos/vim-make-background
7576
- Problem with stderr on Windows? (Vincent Rischmann, 2016 Aug 31, #1026)
@@ -94,6 +95,8 @@ Terminal emulator window:
9495
Although user could use "xterm -e 'cmd arg'".
9596

9697
Regexp problems:
98+
- [:space:] only matches ASCII spaces. Add [:white:] for all space-like
99+
characters, esp. including 0xa0. Use character class zero.
97100
- Since 7.4.704 the old regex engine fails to match [[:print:]] in 0xf6.
98101
(Manuel Ortega, 2016 Apr 24)
99102
Test fails on Mac. Avoid using isalpha(), isalnum(), etc? Depends on
@@ -149,14 +152,11 @@ Use names that indicate their appearnce (Christian Brabandt, 2017 Aug 3)
149152
Suggested by Hiroki Kokubun:
150153
- [Iceberg](https://github.com/cocopon/iceberg.vim) (my one)
151154
- [hybrid](https://github.com/w0ng/vim-hybrid)
152-
153-
Patch to update Brazilian translations. (Eduardo Dobay, 2017 Sep 10, #2077)
155+
Include solarized color scheme?
154156

155157
When starting with --clean packages under "start" are not loaded. Make this
156158
work: :packadd START {name} similar to :runtime START name
157159

158-
Patch to refactor qf_jump(). (Yegappan, 2017 Sep 17)
159-
160160
When using :packadd files under "later" are not used, which is inconsistent
161161
with packages under "start". (xtal8, #1994)
162162

@@ -175,14 +175,19 @@ Patch for not profiling the first line of a script. (Lemonboy, 2017 Sep 17,
175175
Mac Terminal.app: ctermbg=15 gives light grey instead of white.
176176
ctermbg=256 breaks clearing till end of the line. Both work fine in xterm.
177177

178+
Patch to avoid `rb_load_protect` as a workaround not to crash (#2147)
179+
180+
Patch for drag&drop reordering of GUI tab pages reordering.
181+
(Ken Takata, 2013 Nov 22, second one, also by Masamichi Abe)
182+
Now on Git: https://gist.github.com/nocd5/165286495c782b815b94
183+
Update 2016 Aug 10.
184+
178185
Using ":hi" causes a redraw, but a redraw may update the status line, which
179186
may trigger a ":hi" command.
180187

181188
Last line not in profile if it is a continuation line. (LemonBoy, 2017 Sep 17,
182189
#2112)
183190

184-
"vim -c startinsert!" doesn't append. (#2117)
185-
186191
With foldmethod=syntax and nofoldenable comment highlighting isn't removed.
187192
(Marcin Szewczyk, 2017 Apr 26)
188193

@@ -203,6 +208,7 @@ Patch to make ":set scroll&" work properly. (Ozaki Kiichi, 2017 Sep 17, #2104)
203208

204209
mswin.vim should not map CTRL-F in the console (#2093)
205210
Patch from Christian, 2017 Sep 15.
211+
Installer patch from Ken Takata, link on #2093.
206212

207213
Default install on MS-Windows should source defaults.vim.
208214
Ask whether to use Windows or Vim key behavior?
@@ -324,8 +330,6 @@ Use gvimext.dll from the nightly build? (Issue #249)
324330
Problem with using :cd when remotely editing a file. (Gerd Wachsmuth, 2017 May
325331
8, #1690)
326332

327-
Include solarized color scheme?
328-
329333
Running test_gui and test_gui_init with Motif sometimes kills the window
330334
manager. Problem with Motif?
331335

@@ -660,11 +664,6 @@ Patch to improve map documentation. Issue #799.
660664

661665
Patch for syntax folding optimization. (Shougo, 2016 Sep 6, #1045)
662666

663-
Patch for drag&drop reordering of GUI tab pages reordering.
664-
(Ken Takata, 2013 Nov 22, second one, also by Masamichi Abe)
665-
Now on Git: https://gist.github.com/nocd5/165286495c782b815b94
666-
Update 2016 Aug 10.
667-
668667
We can use '. to go to the last change in the current buffer, but how about
669668
the last change in any buffer? Can we use ', (, is next to .)?
670669

@@ -2236,9 +2235,6 @@ with "gvim -nb:localhost:55555:foo". From nc do: '1:editFile!0 "foo"'. Then
22362235
go to Insert mode and add a few lines. Then backspacing every other time
22372236
moves the cursor instead of deleting. (Chris Kaiser, 2007 Sep 25)
22382237

2239-
Windows installer should install 32-bit version of right-click handler also on
2240-
64-bit systems. (Brian Cunningham, 2011 Dec 28)
2241-
22422238
Windows installer could add a "open in new tab of existing Vim" menu entry.
22432239
Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
22442240
Just have two choices, always using one Vim and selecting between using an

runtime/doc/vim.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ You can still edit the buffer, but will be prevented from accidentally
325325
overwriting a file.
326326
If you do want to overwrite a file, add an exclamation mark to the Ex command,
327327
as in ":w!".
328-
The \-R option also implies the \-n option (see below).
328+
The \-R option also implies the \-n option (see above).
329329
The 'readonly' option can be reset with ":set noro".
330330
See ":help 'readonly'".
331331
.TP

runtime/doc/vim.man

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ OPTIONS
225225
dentally overwriting a file. If you do want to overwrite a
226226
file, add an exclamation mark to the Ex command, as in
227227
":w!". The -R option also implies the -n option (see
228-
below). The 'readonly' option can be reset with ":set
228+
above). The 'readonly' option can be reset with ":set
229229
noro". See ":help 'readonly'".
230230

231231
-r List swap files, with information about using them for

runtime/doc/windows.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*windows.txt* For Vim version 8.0. Last change: 2017 Sep 08
1+
*windows.txt* For Vim version 8.0. Last change: 2017 Sep 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -619,7 +619,8 @@ The minimal height and width of a window is set with 'winminheight' and
619619
41. :buffers list of buffers
620620

621621
The meaning of [N] depends on the command:
622-
[N] is number of buffers to go forward/backward on ?2, ?3, and ?4
622+
[N] is the number of buffers to go forward/backward on 2/12/22/32,
623+
3/13/23/33, and 4/14/24/34
623624
[N] is an argument number, defaulting to current argument, for 1 and 21
624625
[N] is a buffer number, defaulting to current buffer, for 11 and 31
625626
[N] is a count for 19 and 39

0 commit comments

Comments
 (0)