Christian Brabandt | 51d4d84 | 2024-12-06 17:26:25 +0100 | [diff] [blame] | 1 | *message.txt* For Vim version 9.1. Last change: 2024 Dec 06 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
| 3 | |
| 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
| 5 | |
| 6 | |
| 7 | This file contains an alphabetical list of messages and error messages that |
| 8 | Vim produces. You can use this if you don't understand what the message |
| 9 | means. It is not complete though. |
| 10 | |
| 11 | 1. Old messages |:messages| |
| 12 | 2. Error messages |error-messages| |
| 13 | 3. Messages |messages| |
| 14 | |
| 15 | ============================================================================== |
| 16 | 1. Old messages *:messages* *:mes* *message-history* |
| 17 | |
| 18 | The ":messages" command can be used to view previously given messages. This |
| 19 | is especially useful when messages have been overwritten or truncated. This |
| 20 | depends on the 'shortmess' option. |
| 21 | |
Bram Moolenaar | 207f009 | 2020-08-30 17:20:20 +0200 | [diff] [blame] | 22 | :mes[sages] Show all messages. |
Bram Moolenaar | 451f849 | 2016-04-14 17:16:22 +0200 | [diff] [blame] | 23 | |
Bram Moolenaar | 207f009 | 2020-08-30 17:20:20 +0200 | [diff] [blame] | 24 | :{count}mes[sages] Show the {count} most recent messages. |
Bram Moolenaar | 451f849 | 2016-04-14 17:16:22 +0200 | [diff] [blame] | 25 | |
Bram Moolenaar | 207f009 | 2020-08-30 17:20:20 +0200 | [diff] [blame] | 26 | :mes[sages] clear Clear all messages. |
Bram Moolenaar | 451f849 | 2016-04-14 17:16:22 +0200 | [diff] [blame] | 27 | |
Bram Moolenaar | 207f009 | 2020-08-30 17:20:20 +0200 | [diff] [blame] | 28 | :{count}mes[sages] clear |
| 29 | Clear messages, keeping only the {count} most |
Bram Moolenaar | 451f849 | 2016-04-14 17:16:22 +0200 | [diff] [blame] | 30 | recent ones. |
| 31 | |
Christian Brabandt | 51d4d84 | 2024-12-06 17:26:25 +0100 | [diff] [blame] | 32 | The number of remembered messages is determined by the 'messagesopt' option. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 33 | |
Bram Moolenaar | cfc7d63 | 2005-07-28 22:28:16 +0000 | [diff] [blame] | 34 | *g<* |
| 35 | The "g<" command can be used to see the last page of previous command output. |
Bram Moolenaar | 1e01546 | 2005-09-25 22:16:38 +0000 | [diff] [blame] | 36 | This is especially useful if you accidentally typed <Space> at the hit-enter |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 37 | prompt. You are then back at the hit-enter prompt and can then scroll further |
| 38 | back. |
Bram Moolenaar | 446beb4 | 2011-05-10 17:18:44 +0200 | [diff] [blame] | 39 | Note: If the output has been stopped with "q" at the more prompt, it will only |
| 40 | be displayed up to this point. |
Bram Moolenaar | cfc7d63 | 2005-07-28 22:28:16 +0000 | [diff] [blame] | 41 | The previous command output is cleared when another command produces output. |
Bram Moolenaar | 64d8e25 | 2016-09-06 22:12:34 +0200 | [diff] [blame] | 42 | The "g<" output is not redirected. |
Bram Moolenaar | cfc7d63 | 2005-07-28 22:28:16 +0000 | [diff] [blame] | 43 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | If you are using translated messages, the first printed line tells who |
| 45 | maintains the messages or the translations. You can use this to contact the |
| 46 | maintainer when you spot a mistake. |
| 47 | |
| 48 | If you want to find help on a specific (error) message, use the ID at the |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 49 | start of the message. For example, to get help on the message: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 50 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 51 | E72: Close error on swap file ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 52 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 53 | or (translated): |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 54 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 55 | E72: Errore durante chiusura swap file ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 56 | |
| 57 | Use: > |
| 58 | |
| 59 | :help E72 |
| 60 | |
| 61 | If you are lazy, it also works without the shift key: > |
| 62 | |
| 63 | :help e72 |
| 64 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 65 | The number in this ID has no meaning. |
| 66 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 67 | ============================================================================== |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 68 | 2. Error messages *error-messages* *errors* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 69 | |
| 70 | When an error message is displayed, but it is removed before you could read |
| 71 | it, you can see it again with: > |
| 72 | :echo errmsg |
Bram Moolenaar | 451f849 | 2016-04-14 17:16:22 +0200 | [diff] [blame] | 73 | Or view a list of recent messages with: > |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 74 | :messages |
Bram Moolenaar | 451f849 | 2016-04-14 17:16:22 +0200 | [diff] [blame] | 75 | See `:messages` above. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 76 | |
| 77 | |
| 78 | LIST OF MESSAGES |
RestorerZ | 68ebcee | 2023-05-31 17:12:14 +0100 | [diff] [blame] | 79 | *E222* *E228* *E232* *E292* *E293* *E298* *E304* *E316* |
| 80 | *E317* *E318* *E320* *E322* *E323* *E341* *E356* *E438* |
| 81 | *E439* *E440* *E473* *E570* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 82 | Add to read buffer ~ |
| 83 | makemap: Illegal mode ~ |
| 84 | Cannot create BalloonEval with both message and callback ~ |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 85 | block was not locked ~ |
| 86 | Didn't get block nr {N}? ~ |
| 87 | ml_upd_block0(): Didn't get block 0?? ~ |
| 88 | pointer block id wrong {N} ~ |
| 89 | Updated too many blocks? ~ |
| 90 | get_varp ERROR ~ |
| 91 | u_undo: line numbers wrong ~ |
| 92 | undo list corrupt ~ |
| 93 | undo line missing ~ |
Bram Moolenaar | f10911e | 2022-01-29 22:20:48 +0000 | [diff] [blame] | 94 | ml_get: cannot find line {N} in buffer {nr} {name} ~ |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 95 | line number out of range: {N} past the end ~ |
| 96 | line count wrong in block {N} ~ |
Bram Moolenaar | f10911e | 2022-01-29 22:20:48 +0000 | [diff] [blame] | 97 | Internal error: lalloc(0, ) ~ |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 98 | Internal error: {function} ~ |
Bram Moolenaar | f10911e | 2022-01-29 22:20:48 +0000 | [diff] [blame] | 99 | Internal error in regexp ~ |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 100 | fatal error in cs_manage_matches ~ |
| 101 | Invalid count for del_bytes(): {N} ~ |
Bram Moolenaar | 097c537 | 2023-05-24 21:02:24 +0100 | [diff] [blame] | 102 | *E340* *E685* *internal-error* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 103 | This is an internal error. If you can reproduce it, please send in a bug |
Bram Moolenaar | 097c537 | 2023-05-24 21:02:24 +0100 | [diff] [blame] | 104 | report, see |bugs|. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 105 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 106 | |
| 107 | ATTENTION ~ |
| 108 | Found a swap file by the name ... ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 109 | |
| 110 | See |ATTENTION|. |
| 111 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 112 | *E92* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 113 | Buffer {N} not found ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 114 | |
| 115 | The buffer you requested does not exist. This can also happen when you have |
| 116 | wiped out a buffer which contains a mark or is referenced in another way. |
| 117 | |:bwipeout| |
| 118 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 119 | *E95* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 120 | Buffer with this name already exists ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 121 | |
Bram Moolenaar | 2f0936c | 2022-01-08 21:51:59 +0000 | [diff] [blame] | 122 | You cannot have two buffers with exactly the same name. This includes the |
| 123 | path leading to the file. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 124 | |
Sean Dewar | 4bb505e | 2024-03-05 20:39:07 +0100 | [diff] [blame] | 125 | *E1513* |
Christian Brabandt | 0a32b88 | 2024-03-13 20:59:27 +0100 | [diff] [blame] | 126 | Cannot switch buffer. 'winfixbuf' is enabled ~ |
Colin Kennedy | 2157035 | 2024-03-03 16:16:47 +0100 | [diff] [blame] | 127 | |
| 128 | If a window has 'winfixbuf' enabled, you cannot change that window's current |
| 129 | buffer. You need to set 'nowinfixbuf' before continuing. You may use [!] to |
| 130 | force the window to switch buffers, if your command supports it. |
| 131 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 132 | *E72* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 133 | Close error on swap file ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 134 | |
| 135 | The |swap-file|, that is used to keep a copy of the edited text, could not be |
| 136 | closed properly. Mostly harmless. |
| 137 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 138 | *E169* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 139 | Command too recursive ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 140 | |
| 141 | This happens when an Ex command executes an Ex command that executes an Ex |
Bram Moolenaar | bc2eada | 2017-01-02 21:27:47 +0100 | [diff] [blame] | 142 | command, etc. The limit is 200 or the value of 'maxfuncdepth', whatever is |
| 143 | larger. When it's more there probably is an endless loop. Probably a |
| 144 | |:execute| or |:source| command is involved. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 145 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 146 | *E254* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 147 | Cannot allocate color {name} ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 148 | |
| 149 | The color name {name} is unknown. See |gui-colors| for a list of colors that |
| 150 | are available on most systems. |
| 151 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 152 | *E1244* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 153 | Bad color string: {str} ~ |
Drew Vogel | e30d102 | 2021-10-24 20:35:07 +0100 | [diff] [blame] | 154 | |
| 155 | The provided color did not conform to the pattern #rrggbb |
| 156 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 157 | *E458* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 158 | Cannot allocate colormap entry, some colors may be incorrect ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 159 | |
| 160 | This means that there are not enough colors available for Vim. It will still |
| 161 | run, but some of the colors will not appear in the specified color. Try |
| 162 | stopping other applications that use many colors, or start them after starting |
| 163 | gvim. |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 164 | Browsers are known to consume a lot of colors. You can avoid this with |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 165 | netscape by telling it to use its own colormap: |
| 166 | netscape -install ~ |
| 167 | Or tell it to limit to a certain number of colors (64 should work well): |
| 168 | netscape -ncols 64 ~ |
| 169 | This can also be done with a line in your Xdefaults file: |
| 170 | Netscape*installColormap: Yes ~ |
| 171 | or |
| 172 | Netscape*maxImageColors: 64 ~ |
| 173 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 174 | *E79* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 175 | Cannot expand wildcards ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 176 | |
| 177 | A filename contains a strange combination of characters, which causes Vim to |
| 178 | attempt expanding wildcards but this fails. This does NOT mean that no |
| 179 | matching file names could be found, but that the pattern was illegal. |
| 180 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 181 | *E459* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 182 | Cannot go back to previous directory ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 183 | |
| 184 | While expanding a file name, Vim failed to go back to the previously used |
| 185 | directory. All file names being used may be invalid now! You need to have |
| 186 | execute permission on the current directory. |
| 187 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 188 | *E190* *E212* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 189 | Cannot open "{filename}" for writing ~ |
| 190 | Can't open file for writing ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 191 | |
| 192 | For some reason the file you are writing to cannot be created or overwritten. |
| 193 | The reason could be that you do not have permission to write in the directory |
| 194 | or the file name is not valid. |
| 195 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 196 | *E166* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 197 | Can't open linked file for writing ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 198 | |
| 199 | You are trying to write to a file which can't be overwritten, and the file is |
| 200 | a link (either a hard link or a symbolic link). Writing might still be |
| 201 | possible if the directory that contains the link or the file is writable, but |
| 202 | Vim now doesn't know if you want to delete the link and write the file in its |
| 203 | place, or if you want to delete the file itself and write the new file in its |
| 204 | place. If you really want to write the file under this name, you have to |
| 205 | manually delete the link or the file, or change the permissions so that Vim |
| 206 | can overwrite. |
| 207 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 208 | *E46* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 209 | Cannot change read-only variable "{name}" ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 210 | |
| 211 | You are trying to assign a value to an argument of a function |a:var| or a Vim |
| 212 | internal variable |v:var| which is read-only. |
| 213 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 214 | *E90* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 215 | Cannot unload last buffer ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 216 | |
| 217 | Vim always requires one buffer to be loaded, otherwise there would be nothing |
| 218 | to display in the window. |
| 219 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 220 | *E40* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 221 | Can't open errorfile <filename> ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 222 | |
| 223 | When using the ":make" or ":grep" commands: The file used to save the error |
| 224 | messages or grep output cannot be opened. This can have several causes: |
| 225 | - 'shellredir' has a wrong value. |
| 226 | - The shell changes directory, causing the error file to be written in another |
| 227 | directory. This could be fixed by changing 'makeef', but then the make |
| 228 | command is still executed in the wrong directory. |
| 229 | - 'makeef' has a wrong value. |
| 230 | - The 'grepprg' or 'makeprg' could not be executed. This cannot always be |
| 231 | detected (especially on MS-Windows). Check your $PATH. |
| 232 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 233 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 234 | Can't open file C:\TEMP\VIoD243.TMP ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 235 | |
| 236 | On MS-Windows, this message appears when the output of an external command was |
| 237 | to be read, but the command didn't run successfully. This can be caused by |
| 238 | many things. Check the 'shell', 'shellquote', 'shellxquote', 'shellslash' and |
| 239 | related options. It might also be that the external command was not found, |
| 240 | there is no different error message for that. |
| 241 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 242 | *E12* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 243 | Command not allowed from exrc/vimrc in current dir or tag search ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 244 | |
| 245 | Some commands are not allowed for security reasons. These commands mostly |
| 246 | come from a .exrc or .vimrc file in the current directory, or from a tags |
| 247 | file. Also see 'secure'. |
| 248 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 249 | *E74* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 250 | Command too complex ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 251 | |
| 252 | A mapping resulted in a very long command string. Could be caused by a |
| 253 | mapping that indirectly calls itself. |
| 254 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 255 | |
| 256 | CONVERSION ERROR ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 257 | |
| 258 | When writing a file and the text "CONVERSION ERROR" appears, this means that |
| 259 | some bits were lost when converting text from the internally used UTF-8 to the |
| 260 | format of the file. The file will not be marked unmodified. If you care |
| 261 | about the loss of information, set the 'fileencoding' option to another value |
| 262 | that can handle the characters in the buffer and write again. If you don't |
| 263 | care, you can abandon the buffer or reset the 'modified' option. |
Bram Moolenaar | 68e6560 | 2019-05-26 21:33:31 +0200 | [diff] [blame] | 264 | If there is a backup file, when 'writebackup' or 'backup' is set, it will not |
| 265 | be deleted, so you can move it back into place if you want to discard the |
| 266 | changes. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 267 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 268 | *E302* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 269 | Could not rename swap file ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 270 | |
| 271 | When the file name changes, Vim tries to rename the |swap-file| as well. |
| 272 | This failed and the old swap file is now still used. Mostly harmless. |
| 273 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 274 | *E43* *E44* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 275 | Damaged match string ~ |
| 276 | Corrupted regexp program ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 277 | |
| 278 | Something inside Vim went wrong and resulted in a corrupted regexp. If you |
| 279 | know how to reproduce this problem, please report it. |bugs| |
| 280 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 281 | *E208* *E209* *E210* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 282 | Error writing to "{filename}" ~ |
| 283 | Error closing "{filename}" ~ |
| 284 | Error reading "{filename}" ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 285 | |
| 286 | This occurs when Vim is trying to rename a file, but a simple change of file |
| 287 | name doesn't work. Then the file will be copied, but somehow this failed. |
| 288 | The result may be that both the original file and the destination file exist |
| 289 | and the destination file may be incomplete. |
| 290 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 291 | |
| 292 | Vim: Error reading input, exiting... ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 293 | |
| 294 | This occurs when Vim cannot read typed characters while input is required. |
| 295 | Vim got stuck, the only thing it can do is exit. This can happen when both |
| 296 | stdin and stderr are redirected and executing a script that doesn't exit Vim. |
| 297 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 298 | *E47* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 299 | Error while reading errorfile ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 300 | |
| 301 | Reading the error file was not possible. This is NOT caused by an error |
| 302 | message that was not recognized. |
| 303 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 304 | *E80* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 305 | Error while writing ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 306 | |
| 307 | Writing a file was not completed successfully. The file is probably |
| 308 | incomplete. |
| 309 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 310 | *E13* *E189* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 311 | File exists (add ! to override) ~ |
| 312 | "{filename}" exists (add ! to override) ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 313 | |
| 314 | You are protected from accidentally overwriting a file. When you want to |
| 315 | write anyway, use the same command, but add a "!" just after the command. |
| 316 | Example: > |
| 317 | :w /tmp/test |
| 318 | changes to: > |
| 319 | :w! /tmp/test |
| 320 | < |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 321 | *E768* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 322 | Swap file exists: {filename} (:silent! overrides) ~ |
Bram Moolenaar | ecf07c8 | 2005-08-01 21:52:12 +0000 | [diff] [blame] | 323 | |
| 324 | You are protected from overwriting a file that is being edited by Vim. This |
| 325 | happens when you use ":w! filename" and a swapfile is found. |
| 326 | - If the swapfile was left over from an old crashed edit session you may want |
| 327 | to delete the swapfile. Edit {filename} to find out information about the |
| 328 | swapfile. |
| 329 | - If you want to write anyway prepend ":silent!" to the command. For example: > |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 330 | :silent! w! /tmp/test |
Bram Moolenaar | ecf07c8 | 2005-08-01 21:52:12 +0000 | [diff] [blame] | 331 | < The special command is needed, since you already added the ! for overwriting |
| 332 | an existing file. |
| 333 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 334 | *E139* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 335 | File is loaded in another buffer ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 336 | |
| 337 | You are trying to write a file under a name which is also used in another |
| 338 | buffer. This would result in two versions of the same file. |
| 339 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 340 | *E142* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 341 | File not written: Writing is disabled by 'write' option ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 342 | |
| 343 | The 'write' option is off. This makes all commands that try to write a file |
| 344 | generate this message. This could be caused by a |-m| commandline argument. |
| 345 | You can switch the 'write' option on with ":set write". |
| 346 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 347 | *E25* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 348 | GUI cannot be used: Not enabled at compile time ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 349 | |
| 350 | You are running a version of Vim that doesn't include the GUI code. Therefore |
| 351 | "gvim" and ":gui" don't work. |
| 352 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 353 | *E49* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 354 | Invalid scroll size ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 355 | |
| 356 | This is caused by setting an invalid value for the 'scroll', 'scrolljump' or |
| 357 | 'scrolloff' options. |
| 358 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 359 | *E17* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 360 | "{filename}" is a directory ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 361 | |
| 362 | You tried to write a file with the name of a directory. This is not possible. |
| 363 | You probably need to append a file name. |
| 364 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 365 | *E19* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 366 | Mark has invalid line number ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 367 | |
| 368 | You are using a mark that has a line number that doesn't exist. This can |
| 369 | happen when you have a mark in another file, and some other program has |
| 370 | deleted lines from it. |
| 371 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 372 | *E219* *E220* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 373 | Missing {. ~ |
| 374 | Missing }. ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 375 | |
| 376 | Using a {} construct in a file name, but there is a { without a matching } or |
| 377 | the other way around. It should be used like this: {foo,bar}. This matches |
| 378 | "foo" and "bar". |
| 379 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 380 | *E315* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 381 | ml_get: invalid lnum: {number} ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 382 | |
| 383 | This is an internal Vim error. Please try to find out how it can be |
| 384 | reproduced, and submit a bug report |bugreport.vim|. |
| 385 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 386 | *E173* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 387 | {number} more files to edit ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 388 | |
| 389 | You are trying to exit, while the last item in the argument list has not been |
| 390 | edited. This protects you from accidentally exiting when you still have more |
| 391 | files to work on. See |argument-list|. If you do want to exit, just do it |
| 392 | again and it will work. |
| 393 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 394 | *E23* *E194* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 395 | No alternate file ~ |
| 396 | No alternate file name to substitute for '#' ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 397 | |
| 398 | The alternate file is not defined yet. See |alternate-file|. |
| 399 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 400 | *E32* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 401 | No file name ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 402 | |
| 403 | The current buffer has no name. To write it, use ":w fname". Or give the |
| 404 | buffer a name with ":file fname". |
| 405 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 406 | *E141* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 407 | No file name for buffer {number} ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 408 | |
| 409 | One of the buffers that was changed does not have a file name. Therefore it |
| 410 | cannot be written. You need to give the buffer a file name: > |
| 411 | :buffer {number} |
| 412 | :file {filename} |
| 413 | < |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 414 | *E33* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 415 | No previous substitute regular expression ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 416 | |
| 417 | When using the '~' character in a pattern, it is replaced with the previously |
| 418 | used pattern in a ":substitute" command. This fails when no such command has |
Bram Moolenaar | df177f6 | 2005-02-22 08:39:57 +0000 | [diff] [blame] | 419 | been used yet. See |/~|. This also happens when using ":s/pat/%/", where the |
| 420 | "%" stands for the previous substitute string. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 421 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 422 | *E35* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 423 | No previous regular expression ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 424 | |
| 425 | When using an empty search pattern, the previous search pattern is used. But |
| 426 | that is not possible if there was no previous search. |
| 427 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 428 | *E24* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 429 | No such abbreviation ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 430 | |
| 431 | You have used an ":unabbreviate" command with an argument which is not an |
| 432 | existing abbreviation. All variations of this command give the same message: |
| 433 | ":cunabbrev", ":iunabbrev", etc. Check for trailing white space. |
| 434 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 435 | |
| 436 | /dev/dsp: No such file or directory ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 437 | |
| 438 | Only given for GTK GUI with Gnome support. Gnome tries to use the audio |
| 439 | device and it isn't present. You can ignore this error. |
| 440 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 441 | *E31* |
| 442 | No such mapping ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 443 | |
| 444 | You have used an ":unmap" command with an argument which is not an existing |
| 445 | mapping. All variations of this command give the same message: ":cunmap", |
Bram Moolenaar | 4c3f536 | 2006-04-11 21:38:50 +0000 | [diff] [blame] | 446 | ":unmap!", etc. A few hints: |
| 447 | - Check for trailing white space. |
| 448 | - If the mapping is buffer-local you need to use ":unmap <buffer>". |
| 449 | |:map-<buffer>| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 450 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 451 | *E37* *E89* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 452 | No write since last change (add ! to override) ~ |
| 453 | No write since last change for buffer {N} (add ! to override) ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 454 | |
| 455 | You are trying to |abandon| a file that has changes. Vim protects you from |
| 456 | losing your work. You can either write the changed file with ":w", or, if you |
| 457 | are sure, |abandon| it anyway, and lose all the changes. This can be done by |
| 458 | adding a '!' character just after the command you used. Example: > |
| 459 | :e other_file |
| 460 | changes to: > |
| 461 | :e! other_file |
| 462 | < |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 463 | *E162* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 464 | No write since last change for buffer "{name}" ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 465 | |
| 466 | This appears when you try to exit Vim while some buffers are changed. You |
| 467 | will either have to write the changed buffer (with |:w|), or use a command to |
| 468 | abandon the buffer forcefully, e.g., with ":qa!". Careful, make sure you |
| 469 | don't throw away changes you really want to keep. You might have forgotten |
| 470 | about a buffer, especially when 'hidden' is set. |
| 471 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 472 | |
| 473 | [No write since last change] ~ |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 474 | |
| 475 | This appears when executing a shell command while at least one buffer was |
| 476 | changed. To avoid the message reset the 'warn' option. |
| 477 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 478 | *E38* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 479 | Null argument ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 480 | |
| 481 | Something inside Vim went wrong and resulted in a NULL pointer. If you know |
| 482 | how to reproduce this problem, please report it. |bugs| |
| 483 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 484 | *E41* *E82* *E83* *E342* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 485 | Out of memory! ~ |
| 486 | Out of memory! (allocating {number} bytes) ~ |
| 487 | Cannot allocate any buffer, exiting... ~ |
| 488 | Cannot allocate buffer, using other one... ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 489 | |
| 490 | Oh, oh. You must have been doing something complicated, or some other program |
| 491 | is consuming your memory. Be careful! Vim is not completely prepared for an |
| 492 | out-of-memory situation. First make sure that any changes are saved. Then |
| 493 | try to solve the memory shortage. To stay on the safe side, exit Vim and |
Bram Moolenaar | 0ed0eea | 2010-07-26 22:21:27 +0200 | [diff] [blame] | 494 | start again. |
| 495 | |
Bram Moolenaar | 06fe74a | 2019-08-31 16:20:32 +0200 | [diff] [blame] | 496 | If this happens while Vim is still initializing, editing files is very |
Bram Moolenaar | 2e693a8 | 2019-10-16 22:35:02 +0200 | [diff] [blame] | 497 | unlikely to work, therefore Vim will exit with value 123. |
Bram Moolenaar | 06fe74a | 2019-08-31 16:20:32 +0200 | [diff] [blame] | 498 | |
Bram Moolenaar | 0ed0eea | 2010-07-26 22:21:27 +0200 | [diff] [blame] | 499 | Buffers are only partly kept in memory, thus editing a very large file is |
| 500 | unlikely to cause an out-of-memory situation. Undo information is completely |
| 501 | in memory, you can reduce that with these options: |
| 502 | - 'undolevels' Set to a low value, or to -1 to disable undo completely. This |
| 503 | helps for a change that affects all lines. |
| 504 | - 'undoreload' Set to zero to disable. |
| 505 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 506 | *E339* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 507 | Pattern too long ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 508 | |
Bram Moolenaar | d58e929 | 2011-02-09 17:07:58 +0100 | [diff] [blame] | 509 | This happens on systems with 16 bit ints: The compiled regexp pattern is |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 510 | longer than about 65000 characters. Try using a shorter pattern. |
Bram Moolenaar | d58e929 | 2011-02-09 17:07:58 +0100 | [diff] [blame] | 511 | It also happens when the offset of a rule doesn't fit in the space available. |
| 512 | Try simplifying the pattern. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 513 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 514 | *E45* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 515 | 'readonly' option is set (add ! to override) ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 516 | |
| 517 | You are trying to write a file that was marked as read-only. To write the |
| 518 | file anyway, either reset the 'readonly' option, or add a '!' character just |
| 519 | after the command you used. Example: > |
| 520 | :w |
| 521 | changes to: > |
| 522 | :w! |
| 523 | < |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 524 | *E294* *E295* *E301* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 525 | Read error in swap file ~ |
| 526 | Seek error in swap file read ~ |
| 527 | Oops, lost the swap file!!! ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 528 | |
| 529 | Vim tried to read text from the |swap-file|, but something went wrong. The |
| 530 | text in the related buffer may now be corrupted! Check carefully before you |
| 531 | write a buffer. You may want to write it in another file and check for |
| 532 | differences. |
| 533 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 534 | *E192* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 535 | Recursive use of :normal too deep ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 536 | |
| 537 | You are using a ":normal" command, whose argument again uses a ":normal" |
| 538 | command in a recursive way. This is restricted to 'maxmapdepth' levels. This |
| 539 | example illustrates how to get this message: > |
| 540 | :map gq :normal gq<CR> |
| 541 | If you type "gq", it will execute this mapping, which will call "gq" again. |
| 542 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 543 | *E22* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 544 | Scripts nested too deep ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 545 | |
Bram Moolenaar | 2f0936c | 2022-01-08 21:51:59 +0000 | [diff] [blame] | 546 | Scripts can be read with the "-s" command-line argument and with the |
| 547 | `:source!` command. The script can then again read another script. This can |
| 548 | continue for about 14 levels. When more nesting is done, Vim assumes that |
| 549 | there is a recursive loop and stops with this error message. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 550 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 551 | *E319* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 552 | Sorry, the command is not available in this version ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 553 | |
| 554 | You have used a command that is not present in the version of Vim you are |
| 555 | using. When compiling Vim, many different features can be enabled or |
| 556 | disabled. This depends on how big Vim has chosen to be and the operating |
| 557 | system. See |+feature-list| for when which feature is available. The |
| 558 | |:version| command shows which feature Vim was compiled with. |
| 559 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 560 | *E300* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 561 | Swap file already exists (symlink attack?) ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 562 | |
| 563 | This message appears when Vim is trying to open a swap file and finds it |
| 564 | already exists or finds a symbolic link in its place. This shouldn't happen, |
| 565 | because Vim already checked that the file doesn't exist. Either someone else |
| 566 | opened the same file at exactly the same moment (very unlikely) or someone is |
| 567 | attempting a symlink attack (could happen when editing a file in /tmp or when |
| 568 | 'directory' starts with "/tmp", which is a bad choice). |
| 569 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 570 | *E432* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 571 | Tags file not sorted: {file name} ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 572 | |
| 573 | Vim (and Vi) expect tags files to be sorted in ASCII order. Binary searching |
| 574 | can then be used, which is a lot faster than a linear search. If your tags |
| 575 | files are not properly sorted, reset the |'tagbsearch'| option. |
| 576 | This message is only given when Vim detects a problem when searching for a |
Bram Moolenaar | 7fc0c06 | 2010-08-10 21:43:35 +0200 | [diff] [blame] | 577 | tag. Sometimes this message is not given, even though the tags file is not |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 578 | properly sorted. |
| 579 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 580 | *E424* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 581 | Too many different highlighting attributes in use ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 582 | |
| 583 | Vim can only handle about 223 different kinds of highlighting. If you run |
| 584 | into this limit, you have used too many |:highlight| commands with different |
| 585 | arguments. A ":highlight link" is not counted. |
| 586 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 587 | *E77* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 588 | Too many file names ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 589 | |
| 590 | When expanding file names, more than one match was found. Only one match is |
| 591 | allowed for the command that was used. |
| 592 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 593 | *E303* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 594 | Unable to open swap file for "{filename}", recovery impossible ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 595 | |
| 596 | Vim was not able to create a swap file. You can still edit the file, but if |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 597 | Vim unexpectedly exits the changes will be lost. And Vim may consume a lot of |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 598 | memory when editing a big file. You may want to change the 'directory' option |
Bram Moolenaar | 00e192b | 2019-10-19 17:01:28 +0200 | [diff] [blame] | 599 | to avoid this error. This error is not given when 'directory' is empty. See |
| 600 | |swap-file|. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 601 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 602 | *E140* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 603 | Use ! to write partial buffer ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 604 | |
| 605 | When using a range to write part of a buffer, it is unusual to overwrite the |
| 606 | original file. It is probably a mistake (e.g., when Visual mode was active |
| 607 | when using ":w"), therefore Vim requires using a ! after the command, e.g.: |
| 608 | ":3,10w!". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 609 | |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 610 | |
| 611 | Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type ~ |
| 612 | VirtualBinding ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 613 | |
| 614 | Messages like this appear when starting up. This is not a Vim problem, your |
| 615 | X11 configuration is wrong. You can find a hint on how to solve this here: |
| 616 | http://groups.yahoo.com/group/solarisonintel/message/12179. |
Bram Moolenaar | a17d4c1 | 2010-05-30 18:30:36 +0200 | [diff] [blame] | 617 | [this URL is no longer valid] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 618 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 619 | *W10* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 620 | Warning: Changing a readonly file ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 621 | |
| 622 | The file is read-only and you are making a change to it anyway. You can use |
| 623 | the |FileChangedRO| autocommand event to avoid this message (the autocommand |
| 624 | must reset the 'readonly' option). See 'modifiable' to completely disallow |
| 625 | making changes to a file. |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 626 | This message is only given for the first change after 'readonly' has been set. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 627 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 628 | *W13* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 629 | Warning: File "{filename}" has been created after editing started ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 630 | |
| 631 | You are editing a file in Vim when it didn't exist, but it does exist now. |
| 632 | You will have to decide if you want to keep the version in Vim or the newly |
| 633 | created file. This message is not given when 'buftype' is not empty. |
| 634 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 635 | *W11* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 636 | Warning: File "{filename}" has changed since editing started ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 637 | |
| 638 | The file which you have started editing has got another timestamp and the |
| 639 | contents changed (more precisely: When reading the file again with the current |
| 640 | option settings and autocommands you would end up with different text). This |
| 641 | probably means that some other program changed the file. You will have to |
| 642 | find out what happened, and decide which version of the file you want to keep. |
| 643 | Set the 'autoread' option if you want to do this automatically. |
| 644 | This message is not given when 'buftype' is not empty. |
Bram Moolenaar | 6ebe4f9 | 2022-10-28 20:47:54 +0100 | [diff] [blame] | 645 | Also see the |FileChangedShell| autocommand. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 646 | |
| 647 | There is one situation where you get this message even though there is nothing |
| 648 | wrong: If you save a file in Windows on the day the daylight saving time |
| 649 | starts. It can be fixed in one of these ways: |
| 650 | - Add this line in your autoexec.bat: > |
| 651 | SET TZ=-1 |
| 652 | < Adjust the "-1" for your time zone. |
| 653 | - Disable "automatically adjust clock for daylight saving changes". |
| 654 | - Just write the file again the next day. Or set your clock to the next day, |
| 655 | write the file twice and set the clock back. |
| 656 | |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 657 | If you get W11 all the time, you may need to disable "Acronis Active |
Bram Moolenaar | b0d45e7 | 2017-11-05 18:19:24 +0100 | [diff] [blame] | 658 | Protection" or register Vim as a trusted service/application. |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 659 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 660 | *W12* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 661 | Warning: File "{filename}" has changed and the buffer was changed in Vim as well ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 662 | |
| 663 | Like the above, and the buffer for the file was changed in this Vim as well. |
| 664 | You will have to decide if you want to keep the version in this Vim or the one |
| 665 | on disk. This message is not given when 'buftype' is not empty. |
| 666 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 667 | *W16* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 668 | Warning: Mode of file "{filename}" has changed since editing started ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 669 | |
| 670 | When the timestamp for a buffer was changed and the contents are still the |
| 671 | same but the mode (permissions) have changed. This usually occurs when |
| 672 | checking out a file from a version control system, which causes the read-only |
| 673 | bit to be reset. It should be safe to reload the file. Set 'autoread' to |
| 674 | automatically reload the file. |
| 675 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 676 | *E211* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 677 | File "{filename}" no longer available ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 678 | |
| 679 | The file which you have started editing has disappeared, or is no longer |
| 680 | accessible. Make sure you write the buffer somewhere to avoid losing |
| 681 | changes. This message is not given when 'buftype' is not empty. |
| 682 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 683 | *W14* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 684 | Warning: List of file names overflow ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 685 | |
| 686 | You must be using an awful lot of buffers. It's now possible that two buffers |
| 687 | have the same number, which causes various problems. You might want to exit |
| 688 | Vim and restart it. |
| 689 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 690 | *E931* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 691 | Buffer cannot be registered ~ |
Bram Moolenaar | 269f595 | 2016-07-15 22:54:41 +0200 | [diff] [blame] | 692 | |
Bram Moolenaar | 42ebd06 | 2016-07-17 13:35:14 +0200 | [diff] [blame] | 693 | Out of memory or a duplicate buffer number. May happen after W14. Looking up |
Bram Moolenaar | 269f595 | 2016-07-15 22:54:41 +0200 | [diff] [blame] | 694 | a buffer will not always work, better restart Vim. |
| 695 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 696 | *E296* *E297* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 697 | Seek error in swap file write ~ |
| 698 | Write error in swap file ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 699 | |
| 700 | This mostly happens when the disk is full. Vim could not write text into the |
| 701 | |swap-file|. It's not directly harmful, but when Vim unexpectedly exits some |
| 702 | text may be lost without recovery being possible. Vim might run out of memory |
| 703 | when this problem persists. |
| 704 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 705 | *connection-refused* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 706 | Xlib: connection to "<machine-name:0.0" refused by server ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 707 | |
| 708 | This happens when Vim tries to connect to the X server, but the X server does |
| 709 | not allow a connection. The connection to the X server is needed to be able |
| 710 | to restore the title and for the xterm clipboard support. Unfortunately this |
| 711 | error message cannot be avoided, except by disabling the |+xterm_clipboard| |
| 712 | and |+X11| features. |
| 713 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 714 | *E10* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 715 | \\ should be followed by /, ? or & ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 716 | |
| 717 | A command line started with a backslash or the range of a command contained a |
| 718 | backslash in a wrong place. This is often caused by command-line continuation |
| 719 | being disabled. Remove the 'C' flag from the 'cpoptions' option to enable it. |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 720 | Or use ":set nocp". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 721 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 722 | *E471* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 723 | Argument required ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 724 | |
| 725 | This happens when an Ex command with mandatory argument(s) was executed, but |
| 726 | no argument has been specified. |
| 727 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 728 | *E474* *E475* *E983* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 729 | Invalid argument ~ |
| 730 | Invalid argument: {arg} ~ |
| 731 | Duplicate argument: {arg} ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 732 | |
Bram Moolenaar | 62e1bb4 | 2019-04-08 16:25:07 +0200 | [diff] [blame] | 733 | An Ex command or function has been executed, but an invalid argument has been |
| 734 | specified. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 735 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 736 | *E488* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 737 | Trailing characters ~ |
Bram Moolenaar | f10911e | 2022-01-29 22:20:48 +0000 | [diff] [blame] | 738 | Trailing characters: {text} ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 739 | |
| 740 | An argument has been added to an Ex command that does not permit one. |
Bram Moolenaar | 2f0936c | 2022-01-08 21:51:59 +0000 | [diff] [blame] | 741 | Or the argument has invalid characters and has not been recognized. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 742 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 743 | *E477* *E478* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 744 | No ! allowed ~ |
| 745 | Don't panic! ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 746 | |
| 747 | You have added a "!" after an Ex command that doesn't permit one. |
| 748 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 749 | *E481* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 750 | No range allowed ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 751 | |
| 752 | A range was specified for an Ex command that doesn't permit one. See |
| 753 | |cmdline-ranges|. |
| 754 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 755 | *E482* *E483* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 756 | Can't create file {filename} ~ |
| 757 | Can't get temp file name ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 758 | |
| 759 | Vim cannot create a temporary file. |
| 760 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 761 | *E484* *E485* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 762 | Can't open file {filename} ~ |
| 763 | Can't read file {filename} ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 764 | |
Bram Moolenaar | 34700a6 | 2013-03-07 13:20:54 +0100 | [diff] [blame] | 765 | Vim cannot read a temporary file. Especially on Windows, this can be caused |
| 766 | by wrong escaping of special characters for cmd.exe; the approach was |
| 767 | changed with patch 7.3.443. Try using |shellescape()| for all shell arguments |
| 768 | given to |system()|, or explicitly add escaping with ^. Also see |
| 769 | 'shellxquote' and 'shellxescape'. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 770 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 771 | *E464* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 772 | Ambiguous use of user-defined command ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 773 | |
| 774 | There are two user-defined commands with a common name prefix, and you used |
| 775 | Command-line completion to execute one of them. |user-cmd-ambiguous| |
| 776 | Example: > |
| 777 | :command MyCommand1 echo "one" |
| 778 | :command MyCommand2 echo "two" |
| 779 | :MyCommand |
| 780 | < |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 781 | *E492* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 782 | Not an editor command ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 783 | |
| 784 | You tried to execute a command that is neither an Ex command nor |
| 785 | a user-defined command. |
| 786 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 787 | *E943* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 788 | Command table needs to be updated, run 'make cmdidxs' ~ |
Bram Moolenaar | e0720cb | 2017-03-29 13:48:40 +0200 | [diff] [blame] | 789 | |
| 790 | This can only happen when changing the source code, when adding a command in |
| 791 | src/ex_cmds.h. The lookup table then needs to be updated, by running: > |
| 792 | make cmdidxs |
Bram Moolenaar | 6aa5729 | 2021-08-14 21:25:52 +0200 | [diff] [blame] | 793 | < |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 794 | *E928* *E889* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 795 | E928: String required ~ |
| 796 | E889: Number required ~ |
Bram Moolenaar | 6aa5729 | 2021-08-14 21:25:52 +0200 | [diff] [blame] | 797 | |
| 798 | These happen when a value or expression is used that does not have the |
| 799 | expected type. |
Bram Moolenaar | e0720cb | 2017-03-29 13:48:40 +0200 | [diff] [blame] | 800 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 801 | ============================================================================== |
| 802 | 3. Messages *messages* |
| 803 | |
| 804 | This is an (incomplete) overview of various messages that Vim gives: |
| 805 | |
Bram Moolenaar | 87e25fd | 2005-07-27 21:13:01 +0000 | [diff] [blame] | 806 | *hit-enter* *press-enter* *hit-return* |
| 807 | *press-return* *hit-enter-prompt* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 808 | |
Bram Moolenaar | f10911e | 2022-01-29 22:20:48 +0000 | [diff] [blame] | 809 | Press ENTER or type command to continue ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 810 | |
| 811 | This message is given when there is something on the screen for you to read, |
| 812 | and the screen is about to be redrawn: |
| 813 | - After executing an external command (e.g., ":!ls" and "="). |
| 814 | - Something is displayed on the status line that is longer than the width of |
| 815 | the window, or runs into the 'showcmd' or 'ruler' output. |
| 816 | |
Bram Moolenaar | 87e25fd | 2005-07-27 21:13:01 +0000 | [diff] [blame] | 817 | -> Press <Enter> or <Space> to redraw the screen and continue, without that |
| 818 | key being used otherwise. |
| 819 | -> Press ':' or any other Normal mode command character to start that command. |
Bram Moolenaar | 7e6a515 | 2021-01-02 16:39:53 +0100 | [diff] [blame] | 820 | Note that after an external command some special keys, such as the cursor |
| 821 | keys, may not work normally, because the terminal is still set to a state |
| 822 | for executing the external command. |
Bram Moolenaar | e1438bb | 2006-03-01 22:01:55 +0000 | [diff] [blame] | 823 | -> Press 'k', <Up>, 'u', 'b' or 'g' to scroll back in the messages. This |
| 824 | works the same way as at the |more-prompt|. Only works when 'compatible' |
| 825 | is off and 'more' is on. |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 826 | -> Pressing 'j', 'f', 'd' or <Down> is ignored when messages scrolled off the |
| 827 | top of the screen, 'compatible' is off and 'more' is on, to avoid that |
| 828 | typing one 'j' or 'f' too many causes the messages to disappear. |
Bram Moolenaar | 87e25fd | 2005-07-27 21:13:01 +0000 | [diff] [blame] | 829 | -> Press <C-Y> to copy (yank) a modeless selection to the clipboard register. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 830 | -> Use a menu. The characters defined for Cmdline-mode are used. |
| 831 | -> When 'mouse' contains the 'r' flag, clicking the left mouse button works |
| 832 | like pressing <Space>. This makes it impossible to select text though. |
| 833 | -> For the GUI clicking the left mouse button in the last line works like |
| 834 | pressing <Space>. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 835 | |
Bram Moolenaar | cfc7d63 | 2005-07-28 22:28:16 +0000 | [diff] [blame] | 836 | If you accidentally hit <Enter> or <Space> and you want to see the displayed |
| 837 | text then use |g<|. This only works when 'more' is set. |
| 838 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 839 | To reduce the number of hit-enter prompts: |
Christian Brabandt | 51d4d84 | 2024-12-06 17:26:25 +0100 | [diff] [blame] | 840 | - Set 'messagesopt'. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 841 | - Set 'cmdheight' to 2 or higher. |
| 842 | - Add flags to 'shortmess'. |
| 843 | - Reset 'showcmd' and/or 'ruler'. |
Bram Moolenaar | 06fe74a | 2019-08-31 16:20:32 +0200 | [diff] [blame] | 844 | - Make sure `:echo` text is shorter than or equal to |v:echospace| screen |
| 845 | cells. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 846 | |
Bram Moolenaar | bb15b65 | 2005-10-03 21:52:09 +0000 | [diff] [blame] | 847 | If your script causes the hit-enter prompt and you don't know why, you may |
| 848 | find the |v:scrollstart| variable useful. |
| 849 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 850 | Also see 'mouse'. The hit-enter message is highlighted with the |hl-Question| |
| 851 | group. |
| 852 | |
| 853 | |
Bram Moolenaar | 8a3b805 | 2022-06-26 12:21:15 +0100 | [diff] [blame] | 854 | *more-prompt* *pager* |
Bram Moolenaar | 6f4754b | 2022-01-23 12:07:04 +0000 | [diff] [blame] | 855 | -- More -- ~ |
| 856 | -- More -- SPACE/d/j: screen/page/line down, b/u/k: up, q: quit ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 857 | |
| 858 | This message is given when the screen is filled with messages. It is only |
| 859 | given when the 'more' option is on. It is highlighted with the |hl-MoreMsg| |
| 860 | group. |
| 861 | |
| 862 | Type effect ~ |
| 863 | <CR> or <NL> or j or <Down> one more line |
Bram Moolenaar | 87e25fd | 2005-07-27 21:13:01 +0000 | [diff] [blame] | 864 | d down a page (half a screen) |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 865 | <Space> or f or <PageDown> down a screen |
Bram Moolenaar | cfc7d63 | 2005-07-28 22:28:16 +0000 | [diff] [blame] | 866 | G down all the way, until the hit-enter |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 867 | prompt |
Bram Moolenaar | 87e25fd | 2005-07-27 21:13:01 +0000 | [diff] [blame] | 868 | |
Bram Moolenaar | 25c9c68 | 2019-05-05 18:13:34 +0200 | [diff] [blame] | 869 | <BS> or k or <Up> one line back |
| 870 | u up a page (half a screen) |
| 871 | b or <PageUp> back a screen |
| 872 | g back to the start |
Bram Moolenaar | 87e25fd | 2005-07-27 21:13:01 +0000 | [diff] [blame] | 873 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 874 | q, <Esc> or CTRL-C stop the listing |
| 875 | : stop the listing and enter a |
| 876 | command-line |
| 877 | <C-Y> yank (copy) a modeless selection to |
| 878 | the clipboard ("* and "+ registers) |
| 879 | {menu-entry} what the menu is defined to in |
| 880 | Cmdline-mode. |
Bram Moolenaar | 25c9c68 | 2019-05-05 18:13:34 +0200 | [diff] [blame] | 881 | <LeftMouse> next page (*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 882 | |
| 883 | Any other key causes the meaning of the keys to be displayed. |
| 884 | |
Bram Moolenaar | 25c9c68 | 2019-05-05 18:13:34 +0200 | [diff] [blame] | 885 | (*) Clicking the left mouse button only works: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 886 | - For the GUI: in the last line of the screen. |
| 887 | - When 'r' is included in 'mouse' (but then selecting text won't work). |
| 888 | |
| 889 | |
| 890 | Note: The typed key is directly obtained from the terminal, it is not mapped |
| 891 | and typeahead is ignored. |
| 892 | |
Bram Moolenaar | 1e01546 | 2005-09-25 22:16:38 +0000 | [diff] [blame] | 893 | The |g<| command can be used to see the last page of previous command output. |
| 894 | This is especially useful if you accidentally typed <Space> at the hit-enter |
| 895 | prompt. |
| 896 | |
Bram Moolenaar | 91f84f6 | 2018-07-29 15:07:52 +0200 | [diff] [blame] | 897 | vim:tw=78:ts=8:noet:ft=help:norl: |