1- *change.txt* For Vim version 7.3. Last change: 2012 Jan 04
1+ *change.txt* For Vim version 7.3. Last change: 2012 Apr 25
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -80,8 +80,8 @@ For inserting text see |insert.txt|.
8080 (default: current line | cmdline-ranges | ) [into
8181 register x].
8282
83- These commands delete text. You can repeat them with the "." command
84- (except ":d" ) and undo them. Use Visual mode to delete blocks of text. See
83+ These commands delete text. You can repeat them with the `.` command
84+ (except `: d ` ) and undo them. Use Visual mode to delete blocks of text. See
8585| registers | for an explanation of registers.
8686
8787An exception for the d{motion} command: If the motion is not linewise, the
@@ -132,7 +132,7 @@ gJ Join [count] lines, with a minimum of two lines.
132132 See | ex-flags | for [flags] .
133133
134134These commands delete the <EOL> between lines. This has the effect of joining
135- multiple lines into one line. You can repeat these commands (except ":j" ) and
135+ multiple lines into one line. You can repeat these commands (except `: j ` ) and
136136undo them.
137137
138138These commands, except "gJ", insert one space in place of the <EOL> unless
@@ -465,9 +465,9 @@ much as possible to make the indent. You can use ">><<" to replace an indent
465465made out of spaces with the same indent made out of <Tab> s (and a few spaces
466466if necessary). If the 'expandtab' option is on, Vim uses only spaces. Then
467467you can use ">><<" to replace <Tab> s in the indent by spaces (or use
468- " :retab!" ).
468+ ` :retab ! ` ).
469469
470- To move a line several 'shiftwidth' s, use Visual mode or the ":" commands.
470+ To move a line several 'shiftwidth' s, use Visual mode or the `:` commands.
471471For example: >
472472 Vjj4> move three lines 4 indents to the right
473473 :<<< move current line 3 indents to the left
@@ -487,7 +487,7 @@ Examples of filters are "sort", which sorts lines alphabetically, and
487487works like a filter; not all versions do). The 'shell' option specifies the
488488shell Vim uses to execute the filter command (See also the 'shelltype'
489489option). You can repeat filter commands with ".". Vim does not recognize a
490- comment (starting with '"') after the ":!" command.
490+ comment (starting with '"') after the `: ! ` command.
491491
492492 *!*
493493!{motion}{filter} Filter {motion} text lines through the external
@@ -574,34 +574,34 @@ For other systems the tmpnam() library function is used.
574574 Repeat last :substitute with same search pattern and
575575 substitute string, but without the same flags. You
576576 may add [flags] , see | :s_flags | .
577- Note that after " :substitute" the '&' flag can't be
577+ Note that after ` :substitute ` the '&' flag can't be
578578 used, it's recognized as a pattern separator.
579- The space between " :substitute" and the 'c', 'g' and
579+ The space between ` :substitute ` and the 'c', 'g' and
580580 'r' flags isn't required, but in scripts it's a good
581581 idea to keep it to avoid confusion.
582582
583583:[range] ~[&][flags] [count] *:~*
584584 Repeat last substitute with same substitute string
585585 but with last used search pattern. This is like
586- " :&r" . See | :s_flags | for [flags] .
586+ ` :&r ` . See | :s_flags | for [flags] .
587587
588588 *&*
589- & Synonym for ":s" (repeat last substitute). Note
589+ & Synonym for `: s ` (repeat last substitute). Note
590590 that the flags are not remembered, thus it might
591- actually work differently. You can use " :&&" to keep
591+ actually work differently. You can use ` :&& ` to keep
592592 the flags.
593593
594594 *g&*
595- g& Synonym for " :%s//~/&" (repeat last substitute on all
595+ g& Synonym for ` :% s // ~/& ` (repeat last substitute on all
596596 lines with the same flags).
597597 Mnemonic: global substitute. {not in Vi}
598598
599599 *:snomagic* *:sno*
600- :[range] sno[magic] ... Same as " :substitute" , but always use 'nomagic' .
600+ :[range] sno[magic] ... Same as ` :substitute ` , but always use 'nomagic' .
601601 {not in Vi}
602602
603603 *:smagic* *:sm*
604- :[range] sm[agic] ... Same as " :substitute" , but always use 'magic' .
604+ :[range] sm[agic] ... Same as ` :substitute ` , but always use 'magic' .
605605 {not in Vi}
606606
607607 *:s_flags*
@@ -611,7 +611,7 @@ The flags that you can use for the substitute commands:
611611 command. Examples: >
612612 :&&
613613 :s/this/that/&
614- < Note that ":s" and ":&" don't keep the flags.
614+ < Note that `: s ` and `: & ` don't keep the flags.
615615 {not in Vi}
616616
617617[c] Confirm each substitution. Vim highlights the matching string (with
@@ -667,14 +667,14 @@ The flags that you can use for the substitute commands:
667667
668668[l] Like [p] but print the text like | :list | .
669669
670- [r] Only useful in combination with ":&" or ":s" without arguments. " :&r"
671- works the same way as ":~" : When the search pattern is empty, use the
670+ [r] Only useful in combination with `: & ` or `: s ` without arguments. ` :&r `
671+ works the same way as `:~` : When the search pattern is empty, use the
672672 previously used search pattern instead of the search pattern from the
673- last substitute or " :global" . If the last command that did a search
674- was a substitute or " :global" , there is no effect. If the last
673+ last substitute or ` :global ` . If the last command that did a search
674+ was a substitute or ` :global ` , there is no effect. If the last
675675 command was a search command such as "/", use the pattern from that
676676 command.
677- For ":s" with an argument this already happens: >
677+ For `: s ` with an argument this already happens: >
678678 :s/blue/red/
679679 /green
680680 :s//red/ or :~ or :&r
@@ -691,9 +691,9 @@ reason is that the flags can only be found by skipping the pattern, and in
691691order to skip the pattern the "magicness" must be known. Catch 22!
692692
693693If the {pattern} for the substitute command is empty, the command uses the
694- pattern from the last substitute or " :global" command. If there is none, but
694+ pattern from the last substitute or ` :global ` command. If there is none, but
695695there is a previous search pattern, that one is used. With the [r] flag, the
696- command uses the pattern from the last substitute, " :global" , or search
696+ command uses the pattern from the last substitute, ` :global ` , or search
697697command.
698698
699699If the {string} is omitted the substitute is done as if it's empty. Thus the
@@ -848,7 +848,7 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
848848
849849
8508504.4 Changing tabs *change-tabs*
851- *:ret* *:retab*
851+ *:ret* *:retab* *:retab!*
852852:[range] ret[ab][!] [new_tabstop]
853853 Replace all sequences of white-space containing a
854854 <Tab> with new strings of white-space using the new
@@ -867,7 +867,7 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
867867 Careful: This command modifies any <Tab> characters
868868 inside of strings in a C program. Use "\t" to avoid
869869 this (that's a good habit anyway).
870- " :retab!" may also change a sequence of spaces by
870+ ` :retab ! ` may also change a sequence of spaces by
871871 <Tab> characters, which can mess up a printf().
872872 {not in Vi}
873873 Not available when | +ex_extra | feature was disabled at
@@ -977,8 +977,12 @@ inside of strings can change! Also see 'softtabstop' option. >
977977 current line). This always works | linewise | , thus
978978 this command can be used to put a yanked block as new
979979 lines.
980- The cursor is left on the first non-blank in the last
981- new line.
980+ If no register is specified, it depends on the 'cb'
981+ option: If 'cb' contains "unnamedplus", paste from the
982+ + register | quoteplus | . Otherwise, if 'cb' contains
983+ "unnamed", paste from the * register | quote_star | .
984+ Otherwise, paste from the unnamed register
985+ | quote_quote | .
982986 The register can also be '=' followed by an optional
983987 expression. The expression continues until the end of
984988 the command. You need to escape the '|' and '"'
@@ -1183,20 +1187,20 @@ nothing is returned. {not in Vi}
11831187
118411889. Last search pattern register "/ *quote_/* *quote/*
11851189Contains the most recent search-pattern. This is used for "n" and 'hlsearch' .
1186- It is writable with " :let" , you can change it to have 'hlsearch' highlight
1190+ It is writable with ` :let ` , you can change it to have 'hlsearch' highlight
11871191other matches without actually searching. You can't yank or delete into this
11881192register. The search direction is available in | v:searchforward | .
11891193Note that the valued is restored when returning from a function
11901194| function-search-undo | .
11911195{not in Vi}
11921196
11931197 *@/*
1194- You can write to a register with a " :let" command | :let-@ | . Example: >
1198+ You can write to a register with a ` :let ` command | :let-@ | . Example: >
11951199 :let @/ = "the"
11961200
11971201 If you use a put command without specifying a register, Vim uses the register
11981202that was last filled (this is also the contents of the unnamed register). If
1199- you are confused, use the " :dis" command to find out what Vim will put (this
1203+ you are confused, use the ` :dis` command to find out what Vim will put (this
12001204command displays all named and numbered registers; the unnamed register is
12011205labelled '"').
12021206
@@ -1555,7 +1559,7 @@ Some examples:
15551559 :set fo=tcrq
15561560<
15571561
1558- Automatic formatting *auto-format*
1562+ Automatic formatting *auto-format* *autoformat *
15591563
15601564When the 'a' flag is present in 'formatoptions' text is formatted
15611565automatically when inserting text or deleting text. This works nice for
@@ -1664,7 +1668,7 @@ found here: |sort()|.
16641668 last search pattern is used. This allows trying out
16651669 a pattern first.
16661670
1667- Note that using " :sort" with " :global" doesn't sort the matching lines, it's
1671+ Note that using ` :sort ` with ` :global ` doesn't sort the matching lines, it's
16681672quite useless.
16691673
16701674The details about sorting depend on the library function used. There is no
0 commit comments