1
- *various.txt* For Vim version 8.1. Last change: 2019 Mar 23
1
+ *various.txt* For Vim version 8.1. Last change: 2019 May 05
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -73,16 +73,13 @@ ga Print the ascii value of the character under the
73
73
<ö> 246, Hex 00f6, Oct 366, Digr o: ~
74
74
This shows you can type CTRL-K o : to insert ö.
75
75
76
- {not in Vi}
77
-
78
76
*g8*
79
77
g8 Print the hex values of the bytes used in the
80
78
character under the cursor, assuming it is in | UTF-8 |
81
79
encoding. This also shows composing characters. The
82
80
value of 'maxcombine' doesn't matter.
83
81
Example of a character with two composing characters:
84
82
e0 b8 81 + e0 b8 b9 + e0 b9 89 ~
85
- {not in Vi}
86
83
87
84
*8g8*
88
85
8g8 Find an illegal UTF-8 byte sequence at or after the
@@ -97,7 +94,6 @@ g8 Print the hex values of the bytes used in the
97
94
Note that when the cursor is on an illegal byte or the
98
95
cursor is halfway a multi-byte character the command
99
96
won't move the cursor.
100
- {not in Vi}
101
97
102
98
*:p* *:pr* *:print* *E749*
103
99
:[range] p[rint] [flags]
@@ -174,7 +170,6 @@ g8 Print the hex values of the bytes used in the
174
170
175
171
:{range} z#[+-^.=]{count} *:z#*
176
172
Like ":z", but number the lines.
177
- {not in all versions of Vi, not with these arguments}
178
173
179
174
*:=*
180
175
:= [flags] Print the last line number.
@@ -224,15 +219,13 @@ g8 Print the hex values of the bytes used in the
224
219
225
220
Example: >
226
221
:exe "normal \<c-w>\<c-w>"
227
- < {not in Vi, of course}
228
222
229
223
:{range} norm[al][!] {commands} *:normal-range*
230
224
Execute Normal mode commands {commands} for each line
231
225
in the {range} . Before executing the {commands} , the
232
226
cursor is positioned in the first column of the range,
233
227
for each line. Otherwise it's the same as the
234
228
":normal" command without a range.
235
- {not in Vi}
236
229
237
230
*:sh* *:shell* *E371*
238
231
:sh[ell] This command starts a shell. When the shell exits
@@ -456,7 +449,8 @@ N *+textprop* |text-properties|
456
449
N *+timers* the | timer_start() | function
457
450
N *+title* Setting the window 'title' and 'icon'
458
451
N *+toolbar* | gui-toolbar |
459
- N *+user_commands* User-defined commands. | user-commands |
452
+ T *+user_commands* User-defined commands. | user-commands |
453
+ Always enabled since 8.1.1210.
460
454
B *+vartabs* Variable-width tabstops. | 'vartabstop' |
461
455
N *+viminfo* | 'viminfo' |
462
456
*+vertsplit* Vertically split windows | :vsplit | ; Always enabled
@@ -489,7 +483,7 @@ N *+X11* Unix only: can restore window title |X11|
489
483
:ve[rsion] {nr} Is now ignored. This was previously used to check the
490
484
version number of a .vimrc file. It was removed,
491
485
because you can now use the ":if" command for
492
- version-dependent behavior. {not in Vi}
486
+ version-dependent behavior.
493
487
494
488
*:redi* *:redir*
495
489
:redi[r][!] > {file} Redirect messages to file {file} . The messages which
@@ -509,31 +503,28 @@ N *+X11* Unix only: can restore window title |X11|
509
503
with ":silent call Function()".
510
504
An alternative is to use the 'verbosefile' option,
511
505
this can be used in combination with ":redir".
512
- {not in Vi}
513
506
514
507
:redi[r] >> {file} Redirect messages to file {file} . Append if {file}
515
- already exists. {not in Vi}
508
+ already exists.
516
509
517
510
:redi[r] @{a-zA-Z}
518
511
:redi[r] @{a-zA-Z} > Redirect messages to register {a-z} . Append to the
519
512
contents of the register if its name is given
520
513
uppercase {A-Z} . The ">" after the register name is
521
- optional. {not in Vi}
522
- :redi[r] @{a-z} >> Append messages to register {a-z} . {not in Vi}
514
+ optional.
515
+ :redi[r] @{a-z} >> Append messages to register {a-z} .
523
516
524
517
:redi[r] @*>
525
518
:redi[r] @+> Redirect messages to the selection or clipboard. For
526
519
backward compatibility, the ">" after the register
527
520
name can be omitted. See | quotestar | and | quoteplus | .
528
- {not in Vi}
529
521
:redi[r] @*>>
530
522
:redi[r] @+>> Append messages to the selection or clipboard.
531
- {not in Vi}
532
523
533
524
:redi[r] @"> Redirect messages to the unnamed register. For
534
525
backward compatibility, the ">" after the register
535
- name can be omitted. {not in Vi}
536
- :redi[r] @">> Append messages to the unnamed register. {not in Vi}
526
+ name can be omitted.
527
+ :redi[r] @">> Append messages to the unnamed register.
537
528
538
529
:redi[r] => {var} Redirect messages to a variable. If the variable
539
530
doesn't exist, then it is created. If the variable
@@ -542,14 +533,14 @@ N *+X11* Unix only: can restore window title |X11|
542
533
Only string variables can be used. After the
543
534
redirection starts, if the variable is removed or
544
535
locked or the variable type is changed, then further
545
- command output messages will cause errors. {not in Vi}
536
+ command output messages will cause errors.
546
537
To get the output of one command the | execute() |
547
538
function can be used.
548
539
549
540
:redi[r] =>> {var} Append messages to an existing variable. Only string
550
- variables can be used. {not in Vi}
541
+ variables can be used.
551
542
552
- :redi[r] END End redirecting messages. {not in Vi}
543
+ :redi[r] END End redirecting messages.
553
544
554
545
*:filt* *:filter*
555
546
:filt[er][!] {pat} {command}
@@ -570,17 +561,19 @@ N *+X11* Unix only: can restore window title |X11|
570
561
the output, not necessarily the whole line. Only some
571
562
commands support filtering, try it out to check if it
572
563
works. Some of the commands that support filtering:
573
- | :# | - filter whole line
574
- | :command | - filter by command name
575
- | :files | - filter by file name
576
- | :highlight | - filter by highlight group
577
- | :jumps | - filter by file name
578
- | :let | - filter by variable name
579
- | :list | - filter whole line
580
- | :llist | - filter by file name or module name
581
- | :oldfiles | - filter by file name
582
- | :clist | - filter by file name or module name
583
- | :set | - filter by variable name
564
+ | :# | - filter whole line
565
+ | :clist | - filter by file name or module name
566
+ | :command | - filter by command name
567
+ | :files | - filter by file name
568
+ | :highlight | - filter by highlight group
569
+ | :jumps | - filter by file name
570
+ | :let | - filter by variable name
571
+ | :list | - filter whole line
572
+ | :llist | - filter by file name or module name
573
+ | :marks | - filter by text in the current file,
574
+ or file name for other files
575
+ | :oldfiles | - filter by file name
576
+ | :set | - filter by variable name
584
577
585
578
Only normal messages are filtered, error messages are
586
579
not.
@@ -689,12 +682,11 @@ K Run a program to lookup the keyword under the
689
682
< - When 'keywordprg' is equal to "man -s", a count
690
683
before "K" is inserted after the "-s". If there is
691
684
no count, the "-s" is removed.
692
- {not in Vi}
693
685
694
686
*v_K*
695
687
{Visual} K Like "K", but use the visually highlighted text for
696
688
the keyword. Only works when the highlighted text is
697
- not more than one line. {not in Vi}
689
+ not more than one line.
698
690
699
691
[N] gs *gs* *:sl* *:sleep*
700
692
:[N] sl[eep] [N] [m] Do nothing for [N] seconds. When [m] is included,
@@ -707,7 +699,7 @@ K Run a program to lookup the keyword under the
707
699
< Can be interrupted with CTRL-C (CTRL-B reak on MS-DOS).
708
700
"gs" stands for "goto sleep".
709
701
While sleeping the cursor is positioned in the text,
710
- if at a visible position. {not in Vi}
702
+ if at a visible position.
711
703
Also process the received netbeans messages. {only
712
704
available when compiled with the | +netbeans_intg |
713
705
feature}
0 commit comments