@@ -177,8 +177,6 @@ gR Enter Virtual Replace mode: Each character you type
177
177
<Tab> may replace several characters at once.
178
178
Repeat the entered text [count] -1 times. See
179
179
| Virtual-Replace-mode | for more details.
180
- {not available when compiled without the | +vreplace |
181
- feature}
182
180
183
181
*c*
184
182
["x]c{motion} Delete {motion} text [into register x] and start
@@ -303,8 +301,6 @@ gr{char} Replace the virtual characters under the cursor with
303
301
space. See | gR | and | Virtual-Replace-mode | for more
304
302
details. As with | r | a count may be given.
305
303
{char} can be entered like with | r | .
306
- {not available when compiled without the | +vreplace |
307
- feature}
308
304
309
305
*digraph-arg*
310
306
The argument for Normal mode commands like | r | and | t | is a single character.
@@ -712,6 +708,7 @@ The flags that you can use for the substitute commands:
712
708
search pattern.
713
709
{not in Vi: highlighting of the match, other responses than 'y' or 'n'}
714
710
711
+ *:s_e*
715
712
[e] When the search pattern fails, do not issue an error message and, in
716
713
particular, continue in maps as if no error occurred. This is most
717
714
useful to prevent the "No match" error from breaking a mapping. Vim
@@ -723,33 +720,38 @@ The flags that you can use for the substitute commands:
723
720
Interrupted
724
721
{not in Vi}
725
722
723
+ *:s_g*
726
724
[g] Replace all occurrences in the line. Without this argument,
727
725
replacement occurs only for the first occurrence in each line. If
728
726
the 'edcompatible' option is on, Vim remembers this flag and toggles
729
727
it each time you use it, but resets it when you give a new search
730
728
pattern. If the 'gdefault' option is on, this flag is on by default
731
729
and the [g] argument switches it off.
732
730
731
+ *:s_i*
733
732
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
734
733
are not used.
735
734
{not in Vi}
736
735
736
+ *:s_I*
737
737
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
738
738
options are not used.
739
739
{not in Vi}
740
740
741
+ *:s_n*
741
742
[n] Report the number of matches, do not actually substitute. The [c]
742
743
flag is ignored. The matches are reported as if 'report' is zero.
743
744
Useful to | count-items | .
744
745
If \= | sub-replace-expression | is used, the expression will be
745
746
evaluated in the | sandbox | at every match.
746
747
747
- [p] Print the line containing the last substitute.
748
+ [p] Print the line containing the last substitute. *:s_p*
748
749
749
- [#] Like [p] and prepend the line number.
750
+ [#] Like [p] and prepend the line number. *:s_#*
750
751
751
- [l] Like [p] but print the text like | :list | .
752
+ [l] Like [p] but print the text like | :list | . *:s_l*
752
753
754
+ *:s_r*
753
755
[r] Only useful in combination with `:& ` or `:s ` without arguments. `:&r `
754
756
works the same way as `:~` : When the search pattern is empty, use the
755
757
previously used search pattern instead of the search pattern from the
@@ -1451,7 +1453,7 @@ to the name of an external program for Vim to use for text formatting. The
1451
1453
program.
1452
1454
1453
1455
*format-formatexpr*
1454
- The 'formatexpr' option can be set to a Vim Script function that performs
1456
+ The 'formatexpr' option can be set to a Vim script function that performs
1455
1457
reformatting of the buffer. This should usually happen in an | ftplugin | ,
1456
1458
since formatting is highly dependent on the type of file. It makes
1457
1459
sense to use an | autoload | script, so the corresponding script is only loaded
@@ -1485,7 +1487,7 @@ text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
1485
1487
1486
1488
You can then enable the formatting by executing: >
1487
1489
setlocal formatexpr=format#Format()
1488
- >
1490
+
1489
1491
Note: this function explicitly returns non-zero when called from insert mode
1490
1492
(which basically means, text is inserted beyond the 'textwidth' limit). This
1491
1493
causes Vim to fall back to reformat the text by using the internal formatter.
0 commit comments