Mercurial > vim
comparison runtime/doc/cmdline.txt @ 16553:0e473e9e70c2 v8.1.1280
patch 8.1.1280: remarks about functionality not in Vi clutters the help
commit https://github.com/vim/vim/commit/25c9c680ec4dfbb51f4ef21c3460a48d3c67ffc8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 5 18:13:34 2019 +0200
patch 8.1.1280: remarks about functionality not in Vi clutters the help
Problem: Remarks about functionality not in Vi clutters the help.
Solution: Move all info about what is new in Vim or already existed in Vi to
vi_diff.txt. Remove {not in Vi} remarks. (closes #4268) Add
"noet" to the help files modeline. Also include many other help
file improvements.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 May 2019 18:15:06 +0200 |
parents | 2b30a2b4bde2 |
children | 1eaf34420bb3 |
comparison
equal
deleted
inserted
replaced
16552:deb3d4f5be8b | 16553:0e473e9e70c2 |
---|---|
1 *cmdline.txt* For Vim version 8.1. Last change: 2018 May 14 | 1 *cmdline.txt* For Vim version 8.1. Last change: 2019 May 05 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
64 - Only commands that are typed are remembered. Ones that completely come from | 64 - Only commands that are typed are remembered. Ones that completely come from |
65 mappings are not put in the history. | 65 mappings are not put in the history. |
66 - All searches are put in the search history, including the ones that come | 66 - All searches are put in the search history, including the ones that come |
67 from commands like "*" and "#". But for a mapping, only the last search is | 67 from commands like "*" and "#". But for a mapping, only the last search is |
68 remembered (to avoid that long mappings trash the history). | 68 remembered (to avoid that long mappings trash the history). |
69 {Vi: no history} | |
70 {not available when compiled without the |+cmdline_hist| feature} | 69 {not available when compiled without the |+cmdline_hist| feature} |
71 | 70 |
72 There is an automatic completion of names on the command-line; see | 71 There is an automatic completion of names on the command-line; see |
73 |cmdline-completion|. | 72 |cmdline-completion|. |
74 | 73 |
122 deleted all characters on the line. If that is the | 121 deleted all characters on the line. If that is the |
123 preferred behavior, add the following to your .vimrc: > | 122 preferred behavior, add the following to your .vimrc: > |
124 :cnoremap <C-U> <C-E><C-U> | 123 :cnoremap <C-U> <C-E><C-U> |
125 < | 124 < |
126 *c_<Insert>* *c_Insert* | 125 *c_<Insert>* *c_Insert* |
127 <Insert> Toggle between insert and overstrike. {not in Vi} | 126 <Insert> Toggle between insert and overstrike. |
128 | 127 |
129 {char1} <BS> {char2} or *c_digraph* | 128 {char1} <BS> {char2} or *c_digraph* |
130 CTRL-K {char1} {char2} *c_CTRL-K* | 129 CTRL-K {char1} {char2} *c_CTRL-K* |
131 enter digraph (see |digraphs|). When {char1} is a special | 130 enter digraph (see |digraphs|). When {char1} is a special |
132 key, the code for that key is inserted in <> form. {not in Vi} | 131 key, the code for that key is inserted in <> form. |
133 | 132 |
134 CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>* | 133 CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>* |
135 Insert the contents of a numbered or named register. Between | 134 Insert the contents of a numbered or named register. Between |
136 typing CTRL-R and the second character '"' will be displayed | 135 typing CTRL-R and the second character '"' will be displayed |
137 to indicate that you are expected to enter the name of a | 136 to indicate that you are expected to enter the name of a |
163 When the result is a |List| the items are used | 162 When the result is a |List| the items are used |
164 as lines. They can have line breaks inside | 163 as lines. They can have line breaks inside |
165 too. | 164 too. |
166 When the result is a Float it's automatically | 165 When the result is a Float it's automatically |
167 converted to a String. | 166 converted to a String. |
168 See |registers| about registers. {not in Vi} | 167 See |registers| about registers. |
169 Implementation detail: When using the |expression| register | 168 Implementation detail: When using the |expression| register |
170 and invoking setcmdpos(), this sets the position before | 169 and invoking setcmdpos(), this sets the position before |
171 inserting the resulting string. Use CTRL-R CTRL-R to set the | 170 inserting the resulting string. Use CTRL-R CTRL-R to set the |
172 position afterwards. | 171 position afterwards. |
173 | 172 |
186 | 185 |
187 When 'incsearch' is set the cursor position at the end of the | 186 When 'incsearch' is set the cursor position at the end of the |
188 currently displayed match is used. With CTRL-W the part of | 187 currently displayed match is used. With CTRL-W the part of |
189 the word that was already typed is not inserted again. | 188 the word that was already typed is not inserted again. |
190 | 189 |
191 {not in Vi} | |
192 CTRL-F and CTRL-P: {only when |+file_in_path| feature is | 190 CTRL-F and CTRL-P: {only when |+file_in_path| feature is |
193 included} | 191 included} |
194 | 192 |
195 *c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>* | 193 *c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>* |
196 *c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>* | 194 *c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>* |
311 'keymap' option can be used to install a whole number of them. | 309 'keymap' option can be used to install a whole number of them. |
312 When entering a command line, langmap mappings are switched | 310 When entering a command line, langmap mappings are switched |
313 off, since you are expected to type a command. After | 311 off, since you are expected to type a command. After |
314 switching it on with CTRL-^, the new state is not used again | 312 switching it on with CTRL-^, the new state is not used again |
315 for the next command or Search pattern. | 313 for the next command or Search pattern. |
316 {not in Vi} | |
317 | 314 |
318 *c_CTRL-]* | 315 *c_CTRL-]* |
319 CTRL-] Trigger abbreviation, without inserting a character. {not in | 316 CTRL-] Trigger abbreviation, without inserting a character. |
320 Vi} | |
321 | 317 |
322 For Emacs-style editing on the command-line see |emacs-keys|. | 318 For Emacs-style editing on the command-line see |emacs-keys|. |
323 | 319 |
324 The <Up> and <Down> keys take the current command-line as a search string. | 320 The <Up> and <Down> keys take the current command-line as a search string. |
325 The beginning of the next/previous command-lines are compared with this | 321 The beginning of the next/previous command-lines are compared with this |
330 command-line is shown. (Note: the shifted arrow keys do not work on all | 326 command-line is shown. (Note: the shifted arrow keys do not work on all |
331 terminals) | 327 terminals) |
332 | 328 |
333 *:his* *:history* | 329 *:his* *:history* |
334 :his[tory] Print the history of last entered commands. | 330 :his[tory] Print the history of last entered commands. |
335 {not in Vi} | |
336 {not available when compiled without the |+cmdline_hist| | 331 {not available when compiled without the |+cmdline_hist| |
337 feature} | 332 feature} |
338 | 333 |
339 :his[tory] [{name}] [{first}][, [{last}]] | 334 :his[tory] [{name}] [{first}][, [{last}]] |
340 List the contents of history {name} which can be: | 335 List the contents of history {name} which can be: |
342 s[earch] or / or ? search string history | 337 s[earch] or / or ? search string history |
343 e[xpr] or = expression register history | 338 e[xpr] or = expression register history |
344 i[nput] or @ input line history | 339 i[nput] or @ input line history |
345 d[ebug] or > debug command history | 340 d[ebug] or > debug command history |
346 a[ll] all of the above | 341 a[ll] all of the above |
347 {not in Vi} | |
348 | 342 |
349 If the numbers {first} and/or {last} are given, the respective | 343 If the numbers {first} and/or {last} are given, the respective |
350 range of entries from a history is listed. These numbers can | 344 range of entries from a history is listed. These numbers can |
351 be specified in the following form: | 345 be specified in the following form: |
352 *:history-indexing* | 346 *:history-indexing* |