1
- *change.txt* For Vim version 9.0. Last change: 2022 Mar 05
1
+ *change.txt* For Vim version 9.0. Last change: 2022 May 26
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1177,14 +1177,15 @@ register. With blockwise selection it also depends on the size of the block
1177
1177
and whether the corners are on an existing character. (Implementation detail:
1178
1178
it actually works by first putting the register after the selection and then
1179
1179
deleting the selection.)
1180
- With 'p' the previously selected text is put in the unnamed register. This is
1181
- useful if you want to put that text somewhere else. But you cannot repeat the
1182
- same change.
1183
- With 'P' the unnamed register is not changed, you can repeat the same change.
1184
- But the deleted text cannot be used. If you do need it you can use 'p' with
1185
- another register. E.g., yank the text to copy, Visually select the text to
1186
- replace and use "0p . You can repeat this as many times as you like, and the
1187
- unnamed register will be changed each time.
1180
+ With | p | the previously selected text is put in the unnamed register (and
1181
+ possibly the selection and/or clipboard). This is useful if you want to put
1182
+ that text somewhere else. But you cannot repeat the same change.
1183
+ With | P | the unnamed register is not changed (and neither the selection or
1184
+ clipboard), you can repeat the same change. But the deleted text cannot be
1185
+ used. If you do need it you can use | p | with another register. E.g., yank
1186
+ the text to copy, Visually select the text to replace and use "0p . You can
1187
+ repeat this as many times as you like, and the unnamed register will be
1188
+ changed each time.
1188
1189
1189
1190
When you use a blockwise Visual mode command and yank only a single line into
1190
1191
a register, a paste on a visual selected area will paste that single line on
@@ -1271,7 +1272,7 @@ to their previous contents. When the '>' flag is present in 'cpoptions' then
1271
1272
a line break is inserted before the appended text.
1272
1273
1273
1274
5. Read-only registers ":, ". and "%
1274
- These are '%', '#', ' :' and '.'. You can use them only with the "p", "P",
1275
+ These are '%', ':' and '.'. You can use them only with the "p", "P",
1275
1276
and ":put" commands and with CTRL-R .
1276
1277
*quote_.* *quote.* *E29*
1277
1278
". Contains the last inserted text (the same as what is inserted
@@ -1672,9 +1673,9 @@ readability.
1672
1673
1673
1674
letter meaning when present in 'formatoptions' ~
1674
1675
*fo-t*
1675
- t Auto-wrap text using textwidth
1676
+ t Auto-wrap text using ' textwidth'
1676
1677
*fo-c*
1677
- c Auto-wrap comments using textwidth, inserting the current comment
1678
+ c Auto-wrap comments using ' textwidth' , inserting the current comment
1678
1679
leader automatically.
1679
1680
*fo-r*
1680
1681
r Automatically insert the current comment leader after hitting
@@ -1683,6 +1684,9 @@ r Automatically insert the current comment leader after hitting
1683
1684
o Automatically insert the current comment leader after hitting 'o' or
1684
1685
'O' in Normal mode. In case comment is unwanted in a specific place
1685
1686
use CTRL-U to quickly delete it. | i_CTRL-U |
1687
+ *fo-/*
1688
+ / When 'o' is included: do not insert the comment leader for a //
1689
+ comment after a statement, only when // is at the start of the line.
1686
1690
*fo-q*
1687
1691
q Allow formatting of comments with "gq".
1688
1692
Note that formatting will not change blank lines or lines containing
@@ -1745,8 +1749,8 @@ B When joining lines, don't insert a space between two multibyte
1745
1749
1 Don't break a line after a one-letter word. It's broken before it
1746
1750
instead (if possible).
1747
1751
*fo-]*
1748
- ] Respect textwidth rigorously. With this flag set, no line can be
1749
- longer than textwidth, unless line-break-prohibition rules make this
1752
+ ] Respect ' textwidth' rigorously. With this flag set, no line can be
1753
+ longer than ' textwidth' , unless line-break-prohibition rules make this
1750
1754
impossible. Mainly for CJK scripts and works only if 'encoding' is
1751
1755
"utf-8".
1752
1756
*fo-j*
0 commit comments