Skip to content

Commit 98ef233

Browse files
committed
Update runtime files. Convert a couple of help files to utf-8.
1 parent 9ef2a30 commit 98ef233

14 files changed

Lines changed: 101 additions & 57 deletions

File tree

runtime/doc/autocmd.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.0. Last change: 2018 Mar 05
1+
*autocmd.txt* For Vim version 8.0. Last change: 2018 Mar 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -56,6 +56,8 @@ effects. Be careful not to destroy your text.
5656
Add {cmd} to the list of commands that Vim will
5757
execute automatically on {event} for a file matching
5858
{pat} |autocmd-patterns|.
59+
Note: A quote character is seen as argument to the
60+
:autocmd and won't start a comment.
5961
Vim always adds the {cmd} after existing autocommands,
6062
so that the autocommands execute in the order in which
6163
they were given. See |autocmd-nested| for [nested].
@@ -91,7 +93,8 @@ will appear twice. To avoid this, define your autocommands in a group, so
9193
that you can easily clear them: >
9294
9395
augroup vimrc
94-
autocmd! " Remove all vimrc autocommands
96+
" Remove all vimrc autocommands
97+
autocmd!
9598
au BufNewFile,BufRead *.html so <sfile>:h/html.vim
9699
augroup END
97100
@@ -145,6 +148,8 @@ prompt. When one command outputs two messages this can happen anyway.
145148
plugins, syntax highlighting, etc.
146149

147150
:au[tocmd]! [group] Remove ALL autocommands.
151+
Note: a quote will be seen as argument to the :autocmd
152+
and won't start a comment.
148153
Warning: You should normally not do this without a
149154
group, it breaks plugins, syntax highlighting, etc.
150155

@@ -329,10 +334,6 @@ Name triggered by ~
329334
|CmdlineEnter| after the cursor moves to the command line
330335
|CmdlineLeave| before the cursor leaves the command line
331336

332-
|CmdlineChanged| after a change was made to the command-line text
333-
|CmdlineEnter| after the cursor moves to the command line
334-
|CmdlineLeave| before the cursor leaves the command line
335-
336337
|InsertEnter| starting Insert mode
337338
|InsertChange| when typing <Insert> while in Insert or Replace mode
338339
|InsertLeave| when leaving Insert mode

runtime/doc/eval.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2018 Mar 10
1+
*eval.txt* For Vim version 8.0. Last change: 2018 Mar 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2192,7 +2192,7 @@ gettabvar({nr}, {varname} [, {def}])
21922192
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
21932193
any {name} in {winnr} in tab page {tabnr}
21942194
getwininfo([{winid}]) List list of windows
2195-
getwinpos([{tmeout}]) List X and Y coord in pixels of the Vim window
2195+
getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window
21962196
getwinposx() Number X coord in pixels of the Vim window
21972197
getwinposy() Number Y coord in pixels of the Vim window
21982198
getwinvar({nr}, {varname} [, {def}])
@@ -3172,8 +3172,8 @@ char2nr({expr} [, {utf8}]) *char2nr()*
31723172
char2nr("ABC") returns 65
31733173
< When {utf8} is omitted or zero, the current 'encoding' is used.
31743174
Example for "utf-8": >
3175-
char2nr("á") returns 225
3176-
char2nr("á"[0]) returns 195
3175+
char2nr("á") returns 225
3176+
char2nr("á"[0]) returns 195
31773177
< With {utf8} set to 1, always treat as utf-8 characters.
31783178
A combining character is a separate character.
31793179
|nr2char()| does the opposite.
@@ -9236,6 +9236,8 @@ visualextra Compiled with extra Visual mode commands.
92369236
|blockwise-operators|.
92379237
vms VMS version of Vim.
92389238
vreplace Compiled with |gR| and |gr| commands.
9239+
vtp Compiled for vcon support |+vtp| (check vcon to find
9240+
out if it works in the current console)).
92399241
wildignore Compiled with 'wildignore' option.
92409242
wildmenu Compiled with 'wildmenu' option.
92419243
win32 Win32 version of Vim (MS-Windows 95 and later, 32 or
@@ -9474,8 +9476,7 @@ may be larger.
94749476
It is also possible to define a function without any arguments. You must
94759477
still supply the () then.
94769478

9477-
It is allowed to define another function inside a function
9478-
body.
9479+
It is allowed to define another function inside a function body.
94799480

94809481
*local-variables*
94819482
Inside a function local variables can be used. These will disappear when the

runtime/doc/if_ruby.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_ruby.txt* For Vim version 8.0. Last change: 2016 Sep 01
1+
*if_ruby.txt* For Vim version 8.0. Last change: 2018 Mar 15
22

33

44
VIM REFERENCE MANUAL by Shugo Maeda
@@ -221,6 +221,9 @@ for sure edit "gvim.exe" and search for "ruby\d*.dll\c".
221221
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
222222
some tricks. See the src/INSTALLpc.txt for detail.
223223

224+
If Vim is built with RubyInstaller 2.4 or later, you may also need to add
225+
"C:\Ruby<version>\bin\ruby_builtin_dlls" to the PATH environment variable.
226+
224227

225228
Unix ~
226229

runtime/doc/options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2018 Mar 09
1+
*options.txt* For Vim version 8.0. Last change: 2018 Mar 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/pattern.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 8.0. Last change: 2018 Feb 04
1+
*pattern.txt* For Vim version 8.0. Last change: 2018 Mar 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1166,7 +1166,8 @@ x A single character, with no special meaning, matches itself
11661166
- Matching with a collection can be slow, because each character in
11671167
the text has to be compared with each character in the collection.
11681168
Use one of the other atoms above when possible. Example: "\d" is
1169-
much faster than "[0-9]" and matches the same characters.
1169+
much faster than "[0-9]" and matches the same characters. However,
1170+
the new |NFA| regexp engine deals with this better than the old one.
11701171

11711172
*/\%[]* *E69* *E70* *E369*
11721173
\%[] A sequence of optionally matched atoms. This always matches.

runtime/doc/starting.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 8.0. Last change: 2018 Mar 01
1+
*starting.txt* For Vim version 8.0. Last change: 2018 Mar 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/tags

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
294294
'gfw' options.txt /*'gfw'*
295295
'ghr' options.txt /*'ghr'*
296296
'go' options.txt /*'go'*
297+
'go-!' options.txt /*'go-!'*
297298
'go-A' options.txt /*'go-A'*
298299
'go-F' options.txt /*'go-F'*
299300
'go-L' options.txt /*'go-L'*
@@ -4600,6 +4601,7 @@ EncodingChanged autocmd.txt /*EncodingChanged*
46004601
Eterm syntax.txt /*Eterm*
46014602
Ex intro.txt /*Ex*
46024603
Ex-mode intro.txt /*Ex-mode*
4604+
ExitPre autocmd.txt /*ExitPre*
46034605
Exuberant_ctags tagsrch.txt /*Exuberant_ctags*
46044606
F motion.txt /*F*
46054607
FALSE eval.txt /*FALSE*
@@ -4830,6 +4832,7 @@ Tcl if_tcl.txt /*Tcl*
48304832
TermChanged autocmd.txt /*TermChanged*
48314833
TermResponse autocmd.txt /*TermResponse*
48324834
Terminal-mode terminal.txt /*Terminal-mode*
4835+
TerminalOpen autocmd.txt /*TerminalOpen*
48334836
TextChanged autocmd.txt /*TextChanged*
48344837
TextChangedI autocmd.txt /*TextChangedI*
48354838
TextChangedP autocmd.txt /*TextChangedP*
@@ -8928,6 +8931,7 @@ term_gettty() eval.txt /*term_gettty()*
89288931
term_list() eval.txt /*term_list()*
89298932
term_scrape() eval.txt /*term_scrape()*
89308933
term_sendkeys() eval.txt /*term_sendkeys()*
8934+
term_setkill() eval.txt /*term_setkill()*
89318935
term_setrestore() eval.txt /*term_setrestore()*
89328936
term_setsize() eval.txt /*term_setsize()*
89338937
term_start() eval.txt /*term_start()*

runtime/doc/terminal.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 8.0. Last change: 2018 Mar 10
1+
*terminal.txt* For Vim version 8.0. Last change: 2018 Mar 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -99,9 +99,14 @@ themselves (like Vim does).
9999

100100
To change the keys you type use terminal mode mappings, see |:tmap|.
101101
These are defined like any mapping, but apply only when typing keys that are
102-
sent to the job running in the terminal. For example, to make Escape switch
102+
sent to the job running in the terminal. For example, to make F1 switch
103103
to Terminal-Normal mode: >
104+
tnoremap <F1> <C-W>N
105+
You can use Esc, but you need to make sure it won't cause other keys to
106+
break: >
104107
tnoremap <Esc> <C-W>N
108+
set notimeout ttimeout timeoutlen=100
109+
105110
< *options-in-terminal*
106111
After opening the terminal window and setting 'buftype' to "terminal" the
107112
BufWinEnter autocommand event is triggered. This makes it possible to set
@@ -408,7 +413,7 @@ an expected screen dump.
408413

409414
Vim uses the window size, text, color and other attributes as displayed. The
410415
Vim screen size, font and other properties do not matter. Therefore this
411-
mechanism is portable across systems. A convential screenshot would reflect
416+
mechanism is portable across systems. A conventional screenshot would reflect
412417
all differences, including font size and family.
413418

414419

@@ -483,9 +488,9 @@ This will open a window consisting of three parts:
483488
3. The contents of the second dump
484489

485490
You can usually see what differs in the second part. Use the 'ruler' to
486-
relate it to the postion in the first or second dump.
491+
relate it to the position in the first or second dump.
487492

488-
Alternatively, press "s" to swap the first and second dump. Do this everal
493+
Alternatively, press "s" to swap the first and second dump. Do this several
489494
times so that you can spot the difference in the context of the text.
490495

491496
==============================================================================
@@ -659,7 +664,8 @@ invoking `:Termdebug`: >
659664
let termdebugger = "mygdb"
660665
< *gdb-version*
661666
Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI
662-
interface. This probably requires gdb version 7.12. if you get this error:
667+
interface. The "new-ui" command requires gdb version 7.12 or later. if you
668+
get this error:
663669
Undefined command: "new-ui". Try "help".~
664670
Then your gdb is too old.
665671

runtime/doc/todo.txt

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2018 Mar 09
1+
*todo.txt* For Vim version 8.0. Last change: 2018 Mar 16
22

33

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

38-
No maintainer for Vietnamese translations.
39-
No maintainer for Simplified Chinese translations.
40-
4138
Terminal emulator window:
42-
- Lots of stuff to implement, see src/terminal.c
39+
- Still some stuff to implement and bugs to fix, see src/terminal.c
40+
- Crash when using popup menu while balloon is visible?
41+
- Test_terminal_qall_kill_func if flaky
42+
- Drop options argument of term_dumpdiff() / termp_dumpload() ?
4343

4444
Mode message isn't updated on vertical split. (Alexei Averchenko, 2018 Feb 2,
4545
#2611)
4646

4747
Errors found with random data:
4848
heap-buffer-overflow in alist_add (#2472)
4949

50+
Implement option_save() and option_restore().
51+
5052
Compiler warnings (geeknik, 2017 Oct 26):
5153
- signed integer overflow in do_sub() (#2249)
5254
- signed integer overflow in get_address() (#2248)
5355
- signed integer overflow in getdecchrs() (#2254)
5456
- undefined left shift in get_string_tv() (#2250)
5557

58+
Mouse pointer sticks to stop shape. Only on Windows GUI? #2709
59+
5660
balloon_show() does not work properly in the terminal. (Ben Jackson, 2017 Dec
5761
20, #2481)
5862
Also see #2352, want better control over balloon, perhaps set the position.
@@ -62,6 +66,9 @@ Try out background make plugin:
6266
or asyncmake:
6367
https://github.com/yegappan/asyncmake
6468

69+
Add a ModeChanged autocommand that has an argument indicating the old and new
70+
mode. Also used for switching Terminal mode.
71+
6572
Cursor in status line after search. (#2530)
6673

6774
Cursor in wrong position when line wraps. (#2540)
@@ -79,6 +86,9 @@ Jan 15, #2555)
7986

8087
Check argument of systemlist(). (Pavlov)
8188

89+
No maintainer for Vietnamese translations.
90+
No maintainer for Simplified Chinese translations.
91+
8292
When 'inchsearch' and 'hlsearch' are set /\v highlights everything.
8393
Also see #2337
8494

@@ -91,6 +101,9 @@ first.
91101

92102
Add the debug command line history to viminfo.
93103

104+
Avoid that "sign unplace id" does a redraw right away, esp. when there is a
105+
sequence of these commands. (Andy Stewart, 2018 Mar 16)
106+
94107
ch_sendraw() with long string does not try to read inbetween, which may cause
95108
a deadlock if the reading side is waiting for the write to finish. (Nate
96109
Bosch, 2018 Jan 13, #2548)
@@ -186,9 +199,6 @@ Ask whether to use Windows or Vim key behavior?
186199
Patch for improving detecting Ruby on Mac in configure. (Ilya Mikhaltsou, 2017
187200
Nov 21)
188201

189-
Add a ModeChanged autocommand that has an argument indicating the old and new
190-
mode. Also used for switching Terminal mode.
191-
192202
When using command line window, CmdlineLeave is triggered without
193203
CmdlineEnter. (xtal8, 2017 Oct 30, #2263)
194204
Add some way to get the nested state. Although CmdwinEnter is obviously
@@ -1087,7 +1097,7 @@ Patch: On MS-Windows shellescape() may have to triple double quotes.
10871097
(Ingo Karkat, 2015 Jan 16)
10881098

10891099
Patch for variable tabstops. On github (Christian Brabandt, 2014 May 15)
1090-
Update 2016 Jun 10, # 857
1100+
Update 2018 March 12, #2711
10911101

10921102
Redo only remembers the last change. Could use "{count}g." to redo an older
10931103
change. How does the user know which change? At least have a way to list

runtime/doc/usr_24.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_24.txt* For Vim version 8.0. Last change: 2006 Jul 23
1+
*usr_24.txt* For Vim version 8.0. Last change: 2018 Mar 18
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -538,8 +538,8 @@ a 16 bit and a 32 bit number (e.g., for a Unicode character): >
538538
*24.9* Digraphs
539539

540540
Some characters are not on the keyboard. For example, the copyright character
541-
(©). To type these characters in Vim, you use digraphs, where two characters
542-
represent one. To enter a ©, for example, you press three keys: >
541+
(©). To type these characters in Vim, you use digraphs, where two characters
542+
represent one. To enter a ©, for example, you press three keys: >
543543
544544
CTRL-K Co
545545
@@ -549,12 +549,12 @@ To find out what digraphs are available, use the following command: >
549549
550550
Vim will display the digraph table. Here are three lines of it:
551551

552-
AC ~_ 159 NS | 160 !I ¡ 161 Ct ¢ 162 Pd £ 163 Cu ¤ 164 Ye ¥ 165 ~
553-
BB ¦ 166 SE § 167 ': ¨ 168 Co © 169 -a ª 170 << « 171 NO ¬ 172 ~
554-
-- ­ 173 Rg ® 174 'm ¯ 175 DG ° 176 +- ± 177 2S ² 178 3S ³ 179 ~
552+
AC ~_ 159 NS | 160 !I ¡ 161 Ct ¢ 162 Pd £ 163 Cu ¤ 164 Ye ¥ 165 ~
553+
BB ¦ 166 SE § 167 ': ¨ 168 Co © 169 -a ª 170 << « 171 NO ¬ 172 ~
554+
-- ­ 173 Rg ® 174 'm ¯ 175 DG ° 176 +- ± 177 2S ² 178 3S ³ 179 ~
555555

556556
This shows, for example, that the digraph you get by typing CTRL-K Pd is the
557-
character (£). This is character number 163 (decimal).
557+
character (£). This is character number 163 (decimal).
558558
Pd is short for Pound. Most digraphs are selected to give you a hint about
559559
the character they will produce. If you look through the list you will
560560
understand the logic.
@@ -569,9 +569,9 @@ that combination. Thus CTRL-K dP also works. Since there is no digraph for
569569

570570
You can define your own digraphs. Example: >
571571
572-
:digraph a" ä
572+
:digraph a" ä
573573
574-
This defines that CTRL-K a" inserts an ä character. You can also specify the
574+
This defines that CTRL-K a" inserts an ä character. You can also specify the
575575
character with a decimal number. This defines the same digraph: >
576576
577577
:digraph a" 228

0 commit comments

Comments
 (0)