|
1 |
| -*insert.txt* For Vim version 9.1. Last change: 2024 Jan 04 |
| 1 | +*insert.txt* For Vim version 9.1. Last change: 2024 Jul 25 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -1183,6 +1183,12 @@ items:
|
1183 | 1183 | user_data custom data which is associated with the item and
|
1184 | 1184 | available in |v:completed_item|; it can be any type;
|
1185 | 1185 | defaults to an empty string
|
| 1186 | + hl_group allows specifying an additional highlight group to |
| 1187 | + apply extra attributes to completion items in the |
| 1188 | + popupmenu. Is combined with |hl-PmenuSel| and |
| 1189 | + |hl-Pmenu| highlighting attributes to apply cterm and |
| 1190 | + gui properties, such as strikethrough to the |
| 1191 | + completion items. |
1186 | 1192 |
|
1187 | 1193 | All of these except "icase", "equal", "dup" and "empty" must be a string. If
|
1188 | 1194 | an item does not meet these requirements then an error message is given and
|
@@ -1995,13 +2001,25 @@ These two commands will keep on asking for lines, until you type a line
|
1995 | 2001 | containing only a ".". Watch out for lines starting with a backslash, see
|
1996 | 2002 | |line-continuation|.
|
1997 | 2003 |
|
1998 |
| -When in Ex mode (see |-e|) a backslash at the end of the line can be used to |
1999 |
| -insert a NUL character. To be able to have a line ending in a backslash use |
2000 |
| -two backslashes. This means that the number of backslashes is halved, but |
2001 |
| -only at the end of the line. |
2002 |
| - |
2003 |
| -NOTE: These commands cannot be used with |:global| or |:vglobal|. |
2004 |
| -":append" and ":insert" don't work properly in between ":if" and |
| 2004 | +Text typed after a "|" command separator is used first. So the following |
| 2005 | +command in ex mode: > |
| 2006 | + :a|one |
| 2007 | + two |
| 2008 | + . |
| 2009 | + :visual |
| 2010 | +<appends the following text, after the cursor line: > |
| 2011 | + one |
| 2012 | + two |
| 2013 | +< |
| 2014 | +In |Ex-mode|, when these commands are used with |:global| or |:vglobal| then |
| 2015 | +the lines are obtained from the text following the command. Separate lines |
| 2016 | +with a NL escaped with a backslash: > |
| 2017 | + :global/abc/insert\ |
| 2018 | + one line\ |
| 2019 | + another line |
| 2020 | +The final "." is not needed then. |
| 2021 | + |
| 2022 | +NOTE: ":append" and ":insert" don't work properly in between ":if" and |
2005 | 2023 | ":endif", ":for" and ":endfor", ":while" and ":endwhile".
|
2006 | 2024 |
|
2007 | 2025 | *:start* *:startinsert*
|
|
0 commit comments