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
@@ -490,7 +483,7 @@ N *+X11* Unix only: can restore window title |X11|
490
483
:ve[rsion] {nr} Is now ignored. This was previously used to check the
491
484
version number of a .vimrc file. It was removed,
492
485
because you can now use the ":if" command for
493
- version-dependent behavior. {not in Vi}
486
+ version-dependent behavior.
494
487
495
488
*:redi* *:redir*
496
489
:redi[r][!] > {file} Redirect messages to file {file} . The messages which
@@ -510,31 +503,28 @@ N *+X11* Unix only: can restore window title |X11|
510
503
with ":silent call Function()".
511
504
An alternative is to use the 'verbosefile' option,
512
505
this can be used in combination with ":redir".
513
- {not in Vi}
514
506
515
507
:redi[r] >> {file} Redirect messages to file {file} . Append if {file}
516
- already exists. {not in Vi}
508
+ already exists.
517
509
518
510
:redi[r] @{a-zA-Z}
519
511
:redi[r] @{a-zA-Z} > Redirect messages to register {a-z} . Append to the
520
512
contents of the register if its name is given
521
513
uppercase {A-Z} . The ">" after the register name is
522
- optional. {not in Vi}
523
- :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} .
524
516
525
517
:redi[r] @*>
526
518
:redi[r] @+> Redirect messages to the selection or clipboard. For
527
519
backward compatibility, the ">" after the register
528
520
name can be omitted. See | quotestar | and | quoteplus | .
529
- {not in Vi}
530
521
:redi[r] @*>>
531
522
:redi[r] @+>> Append messages to the selection or clipboard.
532
- {not in Vi}
533
523
534
524
:redi[r] @"> Redirect messages to the unnamed register. For
535
525
backward compatibility, the ">" after the register
536
- name can be omitted. {not in Vi}
537
- :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.
538
528
539
529
:redi[r] => {var} Redirect messages to a variable. If the variable
540
530
doesn't exist, then it is created. If the variable
@@ -543,14 +533,14 @@ N *+X11* Unix only: can restore window title |X11|
543
533
Only string variables can be used. After the
544
534
redirection starts, if the variable is removed or
545
535
locked or the variable type is changed, then further
546
- command output messages will cause errors. {not in Vi}
536
+ command output messages will cause errors.
547
537
To get the output of one command the | execute() |
548
538
function can be used.
549
539
550
540
:redi[r] =>> {var} Append messages to an existing variable. Only string
551
- variables can be used. {not in Vi}
541
+ variables can be used.
552
542
553
- :redi[r] END End redirecting messages. {not in Vi}
543
+ :redi[r] END End redirecting messages.
554
544
555
545
*:filt* *:filter*
556
546
:filt[er][!] {pat} {command}
@@ -692,12 +682,11 @@ K Run a program to lookup the keyword under the
692
682
< - When 'keywordprg' is equal to "man -s", a count
693
683
before "K" is inserted after the "-s". If there is
694
684
no count, the "-s" is removed.
695
- {not in Vi}
696
685
697
686
*v_K*
698
687
{Visual} K Like "K", but use the visually highlighted text for
699
688
the keyword. Only works when the highlighted text is
700
- not more than one line. {not in Vi}
689
+ not more than one line.
701
690
702
691
[N] gs *gs* *:sl* *:sleep*
703
692
:[N] sl[eep] [N] [m] Do nothing for [N] seconds. When [m] is included,
@@ -710,7 +699,7 @@ K Run a program to lookup the keyword under the
710
699
< Can be interrupted with CTRL-C (CTRL-B reak on MS-DOS).
711
700
"gs" stands for "goto sleep".
712
701
While sleeping the cursor is positioned in the text,
713
- if at a visible position. {not in Vi}
702
+ if at a visible position.
714
703
Also process the received netbeans messages. {only
715
704
available when compiled with the | +netbeans_intg |
716
705
feature}
0 commit comments