|
1 | | -*cmdline.txt* For Vim version 7.1. Last change: 2008 Jan 04 |
| 1 | +*cmdline.txt* For Vim version 7.2a. Last change: 2008 Jun 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
|
62 | 62 | old one is removed (to avoid repeated commands moving older commands out of |
63 | 63 | the history). |
64 | 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 | 66 | - All searches are put in the search history, including the ones that come |
67 | 67 | from commands like "*" and "#". But for a mapping, only the last search is |
68 | 68 | remembered (to avoid that long mappings trash the history). |
@@ -226,6 +226,8 @@ CTRL-J *c_CTRL-J* *c_<NL>* *c_<CR>* |
226 | 226 | <Esc> When typed and 'x' not present in 'cpoptions', quit |
227 | 227 | Command-line mode without executing. In macros or when 'x' |
228 | 228 | present in 'cpoptions', start entered command. |
| 229 | + Note: If your <Esc> key is hard to hit on your keyboard, train |
| 230 | + yourself to use CTRL-[. |
229 | 231 | *c_CTRL-C* |
230 | 232 | CTRL-C quit command-line without executing |
231 | 233 |
|
@@ -482,7 +484,7 @@ argument. |
482 | 484 | line. If you want to use '|' in an argument, precede it with '\'. |
483 | 485 |
|
484 | 486 | These commands see the '|' as their argument, and can therefore not be |
485 | | -followed by another command: |
| 487 | +followed by another Vim command: |
486 | 488 | :argdo |
487 | 489 | :autocmd |
488 | 490 | :bufdo |
@@ -718,6 +720,9 @@ to insert special things while typing you can use the CTRL-R command. For |
718 | 720 | example, "%" stands for the current file name, while CTRL-R % inserts the |
719 | 721 | current file name right away. See |c_CTRL-R|. |
720 | 722 |
|
| 723 | +Note: If you want to avoid the special characters in a Vim script you may want |
| 724 | +to use |fnameescape()|. |
| 725 | + |
721 | 726 |
|
722 | 727 | In Ex commands, at places where a file name can be used, the following |
723 | 728 | characters have a special meaning. These can also be used in the expression |
@@ -893,10 +898,10 @@ Examples: (alternate file name is "?readme?") |
893 | 898 | :cd <cfile>* :cd {file name under cursor plus "*" and then expanded} |
894 | 899 |
|
895 | 900 | When the expanded argument contains a "!" and it is used for a shell command |
896 | | -(":!cmd", ":r !cmd" or ":w !cmd"), it is escaped with a backslash to avoid it |
897 | | -being expanded into a previously used command. When the 'shell' option |
898 | | -contains "sh", this is done twice, to avoid the shell trying to expand the |
899 | | -"!". |
| 901 | +(":!cmd", ":r !cmd" or ":w !cmd"), the "!" is escaped with a backslash to |
| 902 | +avoid it being expanded into a previously used command. When the 'shell' |
| 903 | +option contains "sh", this is done twice, to avoid the shell trying to expand |
| 904 | +the "!". |
900 | 905 |
|
901 | 906 | *filename-backslash* |
902 | 907 | For filesystems that use a backslash as directory separator (MS-DOS, Windows, |
|
0 commit comments