blob: f8a9fdfa604b40b7f4a2dbd2eeeff17e9c435da9 [file] [log] [blame]
Christian Brabandt20764632023-11-12 16:59:29 +01001*message.txt* For Vim version 9.0. Last change: 2023 Nov 08
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6
7This file contains an alphabetical list of messages and error messages that
8Vim produces. You can use this if you don't understand what the message
9means. It is not complete though.
10
111. Old messages |:messages|
122. Error messages |error-messages|
133. Messages |messages|
14
15==============================================================================
161. Old messages *:messages* *:mes* *message-history*
17
18The ":messages" command can be used to view previously given messages. This
19is especially useful when messages have been overwritten or truncated. This
20depends on the 'shortmess' option.
21
Bram Moolenaar207f0092020-08-30 17:20:20 +020022 :mes[sages] Show all messages.
Bram Moolenaar451f8492016-04-14 17:16:22 +020023
Bram Moolenaar207f0092020-08-30 17:20:20 +020024 :{count}mes[sages] Show the {count} most recent messages.
Bram Moolenaar451f8492016-04-14 17:16:22 +020025
Bram Moolenaar207f0092020-08-30 17:20:20 +020026 :mes[sages] clear Clear all messages.
Bram Moolenaar451f8492016-04-14 17:16:22 +020027
Bram Moolenaar207f0092020-08-30 17:20:20 +020028 :{count}mes[sages] clear
29 Clear messages, keeping only the {count} most
Bram Moolenaar451f8492016-04-14 17:16:22 +020030 recent ones.
31
Bram Moolenaar1e78deb2021-12-13 14:40:53 +000032The number of remembered messages is fixed at 200.
Bram Moolenaar071d4272004-06-13 20:20:40 +000033
Bram Moolenaarcfc7d632005-07-28 22:28:16 +000034 *g<*
35The "g<" command can be used to see the last page of previous command output.
Bram Moolenaar1e015462005-09-25 22:16:38 +000036This is especially useful if you accidentally typed <Space> at the hit-enter
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +000037prompt. You are then back at the hit-enter prompt and can then scroll further
38back.
Bram Moolenaar446beb42011-05-10 17:18:44 +020039Note: If the output has been stopped with "q" at the more prompt, it will only
40be displayed up to this point.
Bram Moolenaarcfc7d632005-07-28 22:28:16 +000041The previous command output is cleared when another command produces output.
Bram Moolenaar64d8e252016-09-06 22:12:34 +020042The "g<" output is not redirected.
Bram Moolenaarcfc7d632005-07-28 22:28:16 +000043
Bram Moolenaar071d4272004-06-13 20:20:40 +000044If you are using translated messages, the first printed line tells who
45maintains the messages or the translations. You can use this to contact the
46maintainer when you spot a mistake.
47
48If you want to find help on a specific (error) message, use the ID at the
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000049start of the message. For example, to get help on the message:
Bram Moolenaar071d4272004-06-13 20:20:40 +000050
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000051 E72: Close error on swap file ~
Bram Moolenaar071d4272004-06-13 20:20:40 +000052
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000053or (translated):
Bram Moolenaar071d4272004-06-13 20:20:40 +000054
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000055 E72: Errore durante chiusura swap file ~
Bram Moolenaar071d4272004-06-13 20:20:40 +000056
57Use: >
58
59 :help E72
60
61If you are lazy, it also works without the shift key: >
62
63 :help e72
64
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000065The number in this ID has no meaning.
66
Bram Moolenaar071d4272004-06-13 20:20:40 +000067==============================================================================
Bram Moolenaarf2330482008-06-24 20:19:36 +0000682. Error messages *error-messages* *errors*
Bram Moolenaar071d4272004-06-13 20:20:40 +000069
70When an error message is displayed, but it is removed before you could read
71it, you can see it again with: >
72 :echo errmsg
Bram Moolenaar451f8492016-04-14 17:16:22 +020073Or view a list of recent messages with: >
Bram Moolenaar071d4272004-06-13 20:20:40 +000074 :messages
Bram Moolenaar451f8492016-04-14 17:16:22 +020075See `:messages` above.
Bram Moolenaar071d4272004-06-13 20:20:40 +000076
77
78LIST OF MESSAGES
RestorerZ68ebcee2023-05-31 17:12:14 +010079 *E222* *E228* *E232* *E292* *E293* *E298* *E304* *E316*
80 *E317* *E318* *E320* *E322* *E323* *E341* *E356* *E438*
81 *E439* *E440* *E473* *E570*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000082 Add to read buffer ~
83 makemap: Illegal mode ~
84 Cannot create BalloonEval with both message and callback ~
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000085 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 Moolenaarf10911e2022-01-29 22:20:48 +000094 ml_get: cannot find line {N} in buffer {nr} {name} ~
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000095 line number out of range: {N} past the end ~
96 line count wrong in block {N} ~
Bram Moolenaarf10911e2022-01-29 22:20:48 +000097 Internal error: lalloc(0, ) ~
Bram Moolenaar6f4754b2022-01-23 12:07:04 +000098 Internal error: {function} ~
Bram Moolenaarf10911e2022-01-29 22:20:48 +000099 Internal error in regexp ~
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000100 fatal error in cs_manage_matches ~
101 Invalid count for del_bytes(): {N} ~
Bram Moolenaar097c5372023-05-24 21:02:24 +0100102 *E340* *E685* *internal-error*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000103This is an internal error. If you can reproduce it, please send in a bug
Bram Moolenaar097c5372023-05-24 21:02:24 +0100104report, see |bugs|.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000105
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000106
107 ATTENTION ~
108 Found a swap file by the name ... ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000109
110See |ATTENTION|.
111
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100112 *E92*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000113 Buffer {N} not found ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000114
115The buffer you requested does not exist. This can also happen when you have
116wiped out a buffer which contains a mark or is referenced in another way.
117|:bwipeout|
118
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100119 *E95*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000120 Buffer with this name already exists ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000121
Bram Moolenaar2f0936c2022-01-08 21:51:59 +0000122You cannot have two buffers with exactly the same name. This includes the
123path leading to the file.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000124
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100125 *E72*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000126 Close error on swap file ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000127
128The |swap-file|, that is used to keep a copy of the edited text, could not be
129closed properly. Mostly harmless.
130
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100131 *E169*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000132 Command too recursive ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000133
134This happens when an Ex command executes an Ex command that executes an Ex
Bram Moolenaarbc2eada2017-01-02 21:27:47 +0100135command, etc. The limit is 200 or the value of 'maxfuncdepth', whatever is
136larger. When it's more there probably is an endless loop. Probably a
137|:execute| or |:source| command is involved.
Christian Brabandt20764632023-11-12 16:59:29 +0100138Can also happen with a recursive callback function (|job-callback|).
139A limit of 20 is used here.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000140
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100141 *E254*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000142 Cannot allocate color {name} ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000143
144The color name {name} is unknown. See |gui-colors| for a list of colors that
145are available on most systems.
146
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100147 *E1244*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000148 Bad color string: {str} ~
Drew Vogele30d1022021-10-24 20:35:07 +0100149
150The provided color did not conform to the pattern #rrggbb
151
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100152 *E458*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000153 Cannot allocate colormap entry, some colors may be incorrect ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154
155This means that there are not enough colors available for Vim. It will still
156run, but some of the colors will not appear in the specified color. Try
157stopping other applications that use many colors, or start them after starting
158gvim.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100159Browsers are known to consume a lot of colors. You can avoid this with
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000160netscape by telling it to use its own colormap:
161 netscape -install ~
162Or tell it to limit to a certain number of colors (64 should work well):
163 netscape -ncols 64 ~
164This can also be done with a line in your Xdefaults file:
165 Netscape*installColormap: Yes ~
166or
167 Netscape*maxImageColors: 64 ~
168
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100169 *E79*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000170 Cannot expand wildcards ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000171
172A filename contains a strange combination of characters, which causes Vim to
173attempt expanding wildcards but this fails. This does NOT mean that no
174matching file names could be found, but that the pattern was illegal.
175
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100176 *E459*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000177 Cannot go back to previous directory ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178
179While expanding a file name, Vim failed to go back to the previously used
180directory. All file names being used may be invalid now! You need to have
181execute permission on the current directory.
182
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100183 *E190* *E212*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000184 Cannot open "{filename}" for writing ~
185 Can't open file for writing ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000186
187For some reason the file you are writing to cannot be created or overwritten.
188The reason could be that you do not have permission to write in the directory
189or the file name is not valid.
190
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100191 *E166*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000192 Can't open linked file for writing ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000193
194You are trying to write to a file which can't be overwritten, and the file is
195a link (either a hard link or a symbolic link). Writing might still be
196possible if the directory that contains the link or the file is writable, but
197Vim now doesn't know if you want to delete the link and write the file in its
198place, or if you want to delete the file itself and write the new file in its
199place. If you really want to write the file under this name, you have to
200manually delete the link or the file, or change the permissions so that Vim
201can overwrite.
202
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100203 *E46*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000204 Cannot change read-only variable "{name}" ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000205
206You are trying to assign a value to an argument of a function |a:var| or a Vim
207internal variable |v:var| which is read-only.
208
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100209 *E90*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000210 Cannot unload last buffer ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000211
212Vim always requires one buffer to be loaded, otherwise there would be nothing
213to display in the window.
214
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100215 *E40*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000216 Can't open errorfile <filename> ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000217
218When using the ":make" or ":grep" commands: The file used to save the error
219messages or grep output cannot be opened. This can have several causes:
220- 'shellredir' has a wrong value.
221- The shell changes directory, causing the error file to be written in another
222 directory. This could be fixed by changing 'makeef', but then the make
223 command is still executed in the wrong directory.
224- 'makeef' has a wrong value.
225- The 'grepprg' or 'makeprg' could not be executed. This cannot always be
226 detected (especially on MS-Windows). Check your $PATH.
227
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100228
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000229 Can't open file C:\TEMP\VIoD243.TMP ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000230
231On MS-Windows, this message appears when the output of an external command was
232to be read, but the command didn't run successfully. This can be caused by
233many things. Check the 'shell', 'shellquote', 'shellxquote', 'shellslash' and
234related options. It might also be that the external command was not found,
235there is no different error message for that.
236
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100237 *E12*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000238 Command not allowed from exrc/vimrc in current dir or tag search ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000239
240Some commands are not allowed for security reasons. These commands mostly
241come from a .exrc or .vimrc file in the current directory, or from a tags
242file. Also see 'secure'.
243
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100244 *E74*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000245 Command too complex ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000246
247A mapping resulted in a very long command string. Could be caused by a
248mapping that indirectly calls itself.
249
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000250
251 CONVERSION ERROR ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000252
253When writing a file and the text "CONVERSION ERROR" appears, this means that
254some bits were lost when converting text from the internally used UTF-8 to the
255format of the file. The file will not be marked unmodified. If you care
256about the loss of information, set the 'fileencoding' option to another value
257that can handle the characters in the buffer and write again. If you don't
258care, you can abandon the buffer or reset the 'modified' option.
Bram Moolenaar68e65602019-05-26 21:33:31 +0200259If there is a backup file, when 'writebackup' or 'backup' is set, it will not
260be deleted, so you can move it back into place if you want to discard the
261changes.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000262
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100263 *E302*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000264 Could not rename swap file ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000265
266When the file name changes, Vim tries to rename the |swap-file| as well.
267This failed and the old swap file is now still used. Mostly harmless.
268
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100269 *E43* *E44*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000270 Damaged match string ~
271 Corrupted regexp program ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000272
273Something inside Vim went wrong and resulted in a corrupted regexp. If you
274know how to reproduce this problem, please report it. |bugs|
275
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100276 *E208* *E209* *E210*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000277 Error writing to "{filename}" ~
278 Error closing "{filename}" ~
279 Error reading "{filename}" ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000280
281This occurs when Vim is trying to rename a file, but a simple change of file
282name doesn't work. Then the file will be copied, but somehow this failed.
283The result may be that both the original file and the destination file exist
284and the destination file may be incomplete.
285
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000286
287 Vim: Error reading input, exiting... ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000288
289This occurs when Vim cannot read typed characters while input is required.
290Vim got stuck, the only thing it can do is exit. This can happen when both
291stdin and stderr are redirected and executing a script that doesn't exit Vim.
292
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100293 *E47*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000294 Error while reading errorfile ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000295
296Reading the error file was not possible. This is NOT caused by an error
297message that was not recognized.
298
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100299 *E80*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000300 Error while writing ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000301
302Writing a file was not completed successfully. The file is probably
303incomplete.
304
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100305 *E13* *E189*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000306 File exists (add ! to override) ~
307 "{filename}" exists (add ! to override) ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000308
309You are protected from accidentally overwriting a file. When you want to
310write anyway, use the same command, but add a "!" just after the command.
311Example: >
312 :w /tmp/test
313changes to: >
314 :w! /tmp/test
315<
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100316 *E768*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000317 Swap file exists: {filename} (:silent! overrides) ~
Bram Moolenaarecf07c82005-08-01 21:52:12 +0000318
319You are protected from overwriting a file that is being edited by Vim. This
320happens when you use ":w! filename" and a swapfile is found.
321- If the swapfile was left over from an old crashed edit session you may want
322 to delete the swapfile. Edit {filename} to find out information about the
323 swapfile.
324- If you want to write anyway prepend ":silent!" to the command. For example: >
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000325 :silent! w! /tmp/test
Bram Moolenaarecf07c82005-08-01 21:52:12 +0000326< The special command is needed, since you already added the ! for overwriting
327 an existing file.
328
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100329 *E139*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000330 File is loaded in another buffer ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000331
332You are trying to write a file under a name which is also used in another
333buffer. This would result in two versions of the same file.
334
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100335 *E142*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000336 File not written: Writing is disabled by 'write' option ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000337
338The 'write' option is off. This makes all commands that try to write a file
339generate this message. This could be caused by a |-m| commandline argument.
340You can switch the 'write' option on with ":set write".
341
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100342 *E25*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000343 GUI cannot be used: Not enabled at compile time ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000344
345You are running a version of Vim that doesn't include the GUI code. Therefore
346"gvim" and ":gui" don't work.
347
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100348 *E49*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000349 Invalid scroll size ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000350
351This is caused by setting an invalid value for the 'scroll', 'scrolljump' or
352'scrolloff' options.
353
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100354 *E17*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000355 "{filename}" is a directory ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356
357You tried to write a file with the name of a directory. This is not possible.
358You probably need to append a file name.
359
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100360 *E19*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000361 Mark has invalid line number ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000362
363You are using a mark that has a line number that doesn't exist. This can
364happen when you have a mark in another file, and some other program has
365deleted lines from it.
366
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100367 *E219* *E220*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000368 Missing {. ~
369 Missing }. ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000370
371Using a {} construct in a file name, but there is a { without a matching } or
372the other way around. It should be used like this: {foo,bar}. This matches
373"foo" and "bar".
374
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100375 *E315*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000376 ml_get: invalid lnum: {number} ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000377
378This is an internal Vim error. Please try to find out how it can be
379reproduced, and submit a bug report |bugreport.vim|.
380
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100381 *E173*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000382 {number} more files to edit ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000383
384You are trying to exit, while the last item in the argument list has not been
385edited. This protects you from accidentally exiting when you still have more
386files to work on. See |argument-list|. If you do want to exit, just do it
387again and it will work.
388
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100389 *E23* *E194*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000390 No alternate file ~
391 No alternate file name to substitute for '#' ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000392
393The alternate file is not defined yet. See |alternate-file|.
394
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100395 *E32*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000396 No file name ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000397
398The current buffer has no name. To write it, use ":w fname". Or give the
399buffer a name with ":file fname".
400
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100401 *E141*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000402 No file name for buffer {number} ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000403
404One of the buffers that was changed does not have a file name. Therefore it
405cannot be written. You need to give the buffer a file name: >
406 :buffer {number}
407 :file {filename}
408<
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100409 *E33*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000410 No previous substitute regular expression ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000411
412When using the '~' character in a pattern, it is replaced with the previously
413used pattern in a ":substitute" command. This fails when no such command has
Bram Moolenaardf177f62005-02-22 08:39:57 +0000414been used yet. See |/~|. This also happens when using ":s/pat/%/", where the
415"%" stands for the previous substitute string.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000416
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100417 *E35*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000418 No previous regular expression ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000419
420When using an empty search pattern, the previous search pattern is used. But
421that is not possible if there was no previous search.
422
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100423 *E24*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000424 No such abbreviation ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000425
426You have used an ":unabbreviate" command with an argument which is not an
427existing abbreviation. All variations of this command give the same message:
428":cunabbrev", ":iunabbrev", etc. Check for trailing white space.
429
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000430
431 /dev/dsp: No such file or directory ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000432
433Only given for GTK GUI with Gnome support. Gnome tries to use the audio
434device and it isn't present. You can ignore this error.
435
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000436 *E31*
437 No such mapping ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000438
439You have used an ":unmap" command with an argument which is not an existing
440mapping. All variations of this command give the same message: ":cunmap",
Bram Moolenaar4c3f5362006-04-11 21:38:50 +0000441":unmap!", etc. A few hints:
442- Check for trailing white space.
443- If the mapping is buffer-local you need to use ":unmap <buffer>".
444 |:map-<buffer>|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000445
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100446 *E37* *E89*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000447 No write since last change (add ! to override) ~
448 No write since last change for buffer {N} (add ! to override) ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000449
450You are trying to |abandon| a file that has changes. Vim protects you from
451losing your work. You can either write the changed file with ":w", or, if you
452are sure, |abandon| it anyway, and lose all the changes. This can be done by
453adding a '!' character just after the command you used. Example: >
454 :e other_file
455changes to: >
456 :e! other_file
457<
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100458 *E162*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000459 No write since last change for buffer "{name}" ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000460
461This appears when you try to exit Vim while some buffers are changed. You
462will either have to write the changed buffer (with |:w|), or use a command to
463abandon the buffer forcefully, e.g., with ":qa!". Careful, make sure you
464don't throw away changes you really want to keep. You might have forgotten
465about a buffer, especially when 'hidden' is set.
466
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000467
468 [No write since last change] ~
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000469
470This appears when executing a shell command while at least one buffer was
471changed. To avoid the message reset the 'warn' option.
472
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100473 *E38*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000474 Null argument ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000475
476Something inside Vim went wrong and resulted in a NULL pointer. If you know
477how to reproduce this problem, please report it. |bugs|
478
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100479 *E41* *E82* *E83* *E342*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000480 Out of memory! ~
481 Out of memory! (allocating {number} bytes) ~
482 Cannot allocate any buffer, exiting... ~
483 Cannot allocate buffer, using other one... ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000484
485Oh, oh. You must have been doing something complicated, or some other program
486is consuming your memory. Be careful! Vim is not completely prepared for an
487out-of-memory situation. First make sure that any changes are saved. Then
488try to solve the memory shortage. To stay on the safe side, exit Vim and
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +0200489start again.
490
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200491If this happens while Vim is still initializing, editing files is very
Bram Moolenaar2e693a82019-10-16 22:35:02 +0200492unlikely to work, therefore Vim will exit with value 123.
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200493
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +0200494Buffers are only partly kept in memory, thus editing a very large file is
495unlikely to cause an out-of-memory situation. Undo information is completely
496in memory, you can reduce that with these options:
497- 'undolevels' Set to a low value, or to -1 to disable undo completely. This
498 helps for a change that affects all lines.
499- 'undoreload' Set to zero to disable.
500
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100501 *E339*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000502 Pattern too long ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000503
Bram Moolenaard58e9292011-02-09 17:07:58 +0100504This happens on systems with 16 bit ints: The compiled regexp pattern is
Bram Moolenaar071d4272004-06-13 20:20:40 +0000505longer than about 65000 characters. Try using a shorter pattern.
Bram Moolenaard58e9292011-02-09 17:07:58 +0100506It also happens when the offset of a rule doesn't fit in the space available.
507Try simplifying the pattern.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000508
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100509 *E45*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000510 'readonly' option is set (add ! to override) ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000511
512You are trying to write a file that was marked as read-only. To write the
513file anyway, either reset the 'readonly' option, or add a '!' character just
514after the command you used. Example: >
515 :w
516changes to: >
517 :w!
518<
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100519 *E294* *E295* *E301*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000520 Read error in swap file ~
521 Seek error in swap file read ~
522 Oops, lost the swap file!!! ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000523
524Vim tried to read text from the |swap-file|, but something went wrong. The
525text in the related buffer may now be corrupted! Check carefully before you
526write a buffer. You may want to write it in another file and check for
527differences.
528
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100529 *E192*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000530 Recursive use of :normal too deep ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000531
532You are using a ":normal" command, whose argument again uses a ":normal"
533command in a recursive way. This is restricted to 'maxmapdepth' levels. This
534example illustrates how to get this message: >
535 :map gq :normal gq<CR>
536If you type "gq", it will execute this mapping, which will call "gq" again.
537
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100538 *E22*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000539 Scripts nested too deep ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000540
Bram Moolenaar2f0936c2022-01-08 21:51:59 +0000541Scripts can be read with the "-s" command-line argument and with the
542`:source!` command. The script can then again read another script. This can
543continue for about 14 levels. When more nesting is done, Vim assumes that
544there is a recursive loop and stops with this error message.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000545
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100546 *E319*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000547 Sorry, the command is not available in this version ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000548
549You have used a command that is not present in the version of Vim you are
550using. When compiling Vim, many different features can be enabled or
551disabled. This depends on how big Vim has chosen to be and the operating
552system. See |+feature-list| for when which feature is available. The
553|:version| command shows which feature Vim was compiled with.
554
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100555 *E300*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000556 Swap file already exists (symlink attack?) ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000557
558This message appears when Vim is trying to open a swap file and finds it
559already exists or finds a symbolic link in its place. This shouldn't happen,
560because Vim already checked that the file doesn't exist. Either someone else
561opened the same file at exactly the same moment (very unlikely) or someone is
562attempting a symlink attack (could happen when editing a file in /tmp or when
563'directory' starts with "/tmp", which is a bad choice).
564
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100565 *E432*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000566 Tags file not sorted: {file name} ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000567
568Vim (and Vi) expect tags files to be sorted in ASCII order. Binary searching
569can then be used, which is a lot faster than a linear search. If your tags
570files are not properly sorted, reset the |'tagbsearch'| option.
571This message is only given when Vim detects a problem when searching for a
Bram Moolenaar7fc0c062010-08-10 21:43:35 +0200572tag. Sometimes this message is not given, even though the tags file is not
Bram Moolenaar071d4272004-06-13 20:20:40 +0000573properly sorted.
574
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100575 *E424*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000576 Too many different highlighting attributes in use ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000577
578Vim can only handle about 223 different kinds of highlighting. If you run
579into this limit, you have used too many |:highlight| commands with different
580arguments. A ":highlight link" is not counted.
581
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100582 *E77*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000583 Too many file names ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000584
585When expanding file names, more than one match was found. Only one match is
586allowed for the command that was used.
587
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100588 *E303*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000589 Unable to open swap file for "{filename}", recovery impossible ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000590
591Vim was not able to create a swap file. You can still edit the file, but if
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100592Vim unexpectedly exits the changes will be lost. And Vim may consume a lot of
Bram Moolenaar071d4272004-06-13 20:20:40 +0000593memory when editing a big file. You may want to change the 'directory' option
Bram Moolenaar00e192b2019-10-19 17:01:28 +0200594to avoid this error. This error is not given when 'directory' is empty. See
595|swap-file|.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000596
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100597 *E140*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000598 Use ! to write partial buffer ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000599
600When using a range to write part of a buffer, it is unusual to overwrite the
601original file. It is probably a mistake (e.g., when Visual mode was active
602when using ":w"), therefore Vim requires using a ! after the command, e.g.:
603":3,10w!".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000604
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000605
606 Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type ~
607 VirtualBinding ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000608
609Messages like this appear when starting up. This is not a Vim problem, your
610X11 configuration is wrong. You can find a hint on how to solve this here:
611http://groups.yahoo.com/group/solarisonintel/message/12179.
Bram Moolenaara17d4c12010-05-30 18:30:36 +0200612[this URL is no longer valid]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000613
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100614 *W10*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000615 Warning: Changing a readonly file ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000616
617The file is read-only and you are making a change to it anyway. You can use
618the |FileChangedRO| autocommand event to avoid this message (the autocommand
619must reset the 'readonly' option). See 'modifiable' to completely disallow
620making changes to a file.
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +0000621This message is only given for the first change after 'readonly' has been set.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000622
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100623 *W13*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000624 Warning: File "{filename}" has been created after editing started ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000625
626You are editing a file in Vim when it didn't exist, but it does exist now.
627You will have to decide if you want to keep the version in Vim or the newly
628created file. This message is not given when 'buftype' is not empty.
629
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100630 *W11*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000631 Warning: File "{filename}" has changed since editing started ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000632
633The file which you have started editing has got another timestamp and the
634contents changed (more precisely: When reading the file again with the current
635option settings and autocommands you would end up with different text). This
636probably means that some other program changed the file. You will have to
637find out what happened, and decide which version of the file you want to keep.
638Set the 'autoread' option if you want to do this automatically.
639This message is not given when 'buftype' is not empty.
Bram Moolenaar6ebe4f92022-10-28 20:47:54 +0100640Also see the |FileChangedShell| autocommand.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000641
642There is one situation where you get this message even though there is nothing
643wrong: If you save a file in Windows on the day the daylight saving time
644starts. It can be fixed in one of these ways:
645- Add this line in your autoexec.bat: >
646 SET TZ=-1
647< Adjust the "-1" for your time zone.
648- Disable "automatically adjust clock for daylight saving changes".
649- Just write the file again the next day. Or set your clock to the next day,
650 write the file twice and set the clock back.
651
Bram Moolenaar01164a62017-11-02 22:58:42 +0100652If you get W11 all the time, you may need to disable "Acronis Active
Bram Moolenaarb0d45e72017-11-05 18:19:24 +0100653Protection" or register Vim as a trusted service/application.
Bram Moolenaar01164a62017-11-02 22:58:42 +0100654
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100655 *W12*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000656 Warning: File "{filename}" has changed and the buffer was changed in Vim as well ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000657
658Like the above, and the buffer for the file was changed in this Vim as well.
659You will have to decide if you want to keep the version in this Vim or the one
660on disk. This message is not given when 'buftype' is not empty.
661
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100662 *W16*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000663 Warning: Mode of file "{filename}" has changed since editing started ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000664
665When the timestamp for a buffer was changed and the contents are still the
666same but the mode (permissions) have changed. This usually occurs when
667checking out a file from a version control system, which causes the read-only
668bit to be reset. It should be safe to reload the file. Set 'autoread' to
669automatically reload the file.
670
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100671 *E211*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000672 File "{filename}" no longer available ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000673
674The file which you have started editing has disappeared, or is no longer
675accessible. Make sure you write the buffer somewhere to avoid losing
676changes. This message is not given when 'buftype' is not empty.
677
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100678 *W14*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000679 Warning: List of file names overflow ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000680
681You must be using an awful lot of buffers. It's now possible that two buffers
682have the same number, which causes various problems. You might want to exit
683Vim and restart it.
684
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100685 *E931*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000686 Buffer cannot be registered ~
Bram Moolenaar269f5952016-07-15 22:54:41 +0200687
Bram Moolenaar42ebd062016-07-17 13:35:14 +0200688Out of memory or a duplicate buffer number. May happen after W14. Looking up
Bram Moolenaar269f5952016-07-15 22:54:41 +0200689a buffer will not always work, better restart Vim.
690
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100691 *E296* *E297*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000692 Seek error in swap file write ~
693 Write error in swap file ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000694
695This mostly happens when the disk is full. Vim could not write text into the
696|swap-file|. It's not directly harmful, but when Vim unexpectedly exits some
697text may be lost without recovery being possible. Vim might run out of memory
698when this problem persists.
699
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100700 *connection-refused*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000701 Xlib: connection to "<machine-name:0.0" refused by server ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000702
703This happens when Vim tries to connect to the X server, but the X server does
704not allow a connection. The connection to the X server is needed to be able
705to restore the title and for the xterm clipboard support. Unfortunately this
706error message cannot be avoided, except by disabling the |+xterm_clipboard|
707and |+X11| features.
708
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100709 *E10*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000710 \\ should be followed by /, ? or & ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000711
712A command line started with a backslash or the range of a command contained a
713backslash in a wrong place. This is often caused by command-line continuation
714being disabled. Remove the 'C' flag from the 'cpoptions' option to enable it.
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000715Or use ":set nocp".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000716
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100717 *E471*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000718 Argument required ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000719
720This happens when an Ex command with mandatory argument(s) was executed, but
721no argument has been specified.
722
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100723 *E474* *E475* *E983*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000724 Invalid argument ~
725 Invalid argument: {arg} ~
726 Duplicate argument: {arg} ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000727
Bram Moolenaar62e1bb42019-04-08 16:25:07 +0200728An Ex command or function has been executed, but an invalid argument has been
729specified.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000730
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100731 *E488*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000732 Trailing characters ~
Bram Moolenaarf10911e2022-01-29 22:20:48 +0000733 Trailing characters: {text} ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000734
735An argument has been added to an Ex command that does not permit one.
Bram Moolenaar2f0936c2022-01-08 21:51:59 +0000736Or the argument has invalid characters and has not been recognized.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000737
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100738 *E477* *E478*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000739 No ! allowed ~
740 Don't panic! ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000741
742You have added a "!" after an Ex command that doesn't permit one.
743
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100744 *E481*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000745 No range allowed ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000746
747A range was specified for an Ex command that doesn't permit one. See
748|cmdline-ranges|.
749
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100750 *E482* *E483*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000751 Can't create file {filename} ~
752 Can't get temp file name ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000753
754Vim cannot create a temporary file.
755
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100756 *E484* *E485*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000757 Can't open file {filename} ~
758 Can't read file {filename} ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000759
Bram Moolenaar34700a62013-03-07 13:20:54 +0100760Vim cannot read a temporary file. Especially on Windows, this can be caused
761by wrong escaping of special characters for cmd.exe; the approach was
762changed with patch 7.3.443. Try using |shellescape()| for all shell arguments
763given to |system()|, or explicitly add escaping with ^. Also see
764'shellxquote' and 'shellxescape'.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000765
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100766 *E464*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000767 Ambiguous use of user-defined command ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000768
769There are two user-defined commands with a common name prefix, and you used
770Command-line completion to execute one of them. |user-cmd-ambiguous|
771Example: >
772 :command MyCommand1 echo "one"
773 :command MyCommand2 echo "two"
774 :MyCommand
775<
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100776 *E492*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000777 Not an editor command ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000778
779You tried to execute a command that is neither an Ex command nor
780a user-defined command.
781
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100782 *E943*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000783 Command table needs to be updated, run 'make cmdidxs' ~
Bram Moolenaare0720cb2017-03-29 13:48:40 +0200784
785This can only happen when changing the source code, when adding a command in
786src/ex_cmds.h. The lookup table then needs to be updated, by running: >
787 make cmdidxs
Bram Moolenaar6aa57292021-08-14 21:25:52 +0200788<
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100789 *E928* *E889*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000790 E928: String required ~
791 E889: Number required ~
Bram Moolenaar6aa57292021-08-14 21:25:52 +0200792
793These happen when a value or expression is used that does not have the
794expected type.
Bram Moolenaare0720cb2017-03-29 13:48:40 +0200795
Bram Moolenaar071d4272004-06-13 20:20:40 +0000796==============================================================================
7973. Messages *messages*
798
799This is an (incomplete) overview of various messages that Vim gives:
800
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000801 *hit-enter* *press-enter* *hit-return*
802 *press-return* *hit-enter-prompt*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000803
Bram Moolenaarf10911e2022-01-29 22:20:48 +0000804 Press ENTER or type command to continue ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000805
806This message is given when there is something on the screen for you to read,
807and the screen is about to be redrawn:
808- After executing an external command (e.g., ":!ls" and "=").
809- Something is displayed on the status line that is longer than the width of
810 the window, or runs into the 'showcmd' or 'ruler' output.
811
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000812-> Press <Enter> or <Space> to redraw the screen and continue, without that
813 key being used otherwise.
814-> Press ':' or any other Normal mode command character to start that command.
Bram Moolenaar7e6a5152021-01-02 16:39:53 +0100815 Note that after an external command some special keys, such as the cursor
816 keys, may not work normally, because the terminal is still set to a state
817 for executing the external command.
Bram Moolenaare1438bb2006-03-01 22:01:55 +0000818-> Press 'k', <Up>, 'u', 'b' or 'g' to scroll back in the messages. This
819 works the same way as at the |more-prompt|. Only works when 'compatible'
820 is off and 'more' is on.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100821-> Pressing 'j', 'f', 'd' or <Down> is ignored when messages scrolled off the
822 top of the screen, 'compatible' is off and 'more' is on, to avoid that
823 typing one 'j' or 'f' too many causes the messages to disappear.
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000824-> Press <C-Y> to copy (yank) a modeless selection to the clipboard register.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000825-> Use a menu. The characters defined for Cmdline-mode are used.
826-> When 'mouse' contains the 'r' flag, clicking the left mouse button works
827 like pressing <Space>. This makes it impossible to select text though.
828-> For the GUI clicking the left mouse button in the last line works like
829 pressing <Space>.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000830
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000831If you accidentally hit <Enter> or <Space> and you want to see the displayed
832text then use |g<|. This only works when 'more' is set.
833
Bram Moolenaar071d4272004-06-13 20:20:40 +0000834To reduce the number of hit-enter prompts:
835- Set 'cmdheight' to 2 or higher.
836- Add flags to 'shortmess'.
837- Reset 'showcmd' and/or 'ruler'.
Bram Moolenaar06fe74a2019-08-31 16:20:32 +0200838- Make sure `:echo` text is shorter than or equal to |v:echospace| screen
839 cells.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000840
Bram Moolenaarbb15b652005-10-03 21:52:09 +0000841If your script causes the hit-enter prompt and you don't know why, you may
842find the |v:scrollstart| variable useful.
843
Bram Moolenaar071d4272004-06-13 20:20:40 +0000844Also see 'mouse'. The hit-enter message is highlighted with the |hl-Question|
845group.
846
847
Bram Moolenaar8a3b8052022-06-26 12:21:15 +0100848 *more-prompt* *pager*
Bram Moolenaar6f4754b2022-01-23 12:07:04 +0000849 -- More -- ~
850 -- More -- SPACE/d/j: screen/page/line down, b/u/k: up, q: quit ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000851
852This message is given when the screen is filled with messages. It is only
853given when the 'more' option is on. It is highlighted with the |hl-MoreMsg|
854group.
855
856Type effect ~
857 <CR> or <NL> or j or <Down> one more line
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000858 d down a page (half a screen)
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100859 <Space> or f or <PageDown> down a screen
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000860 G down all the way, until the hit-enter
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000861 prompt
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000862
Bram Moolenaar25c9c682019-05-05 18:13:34 +0200863 <BS> or k or <Up> one line back
864 u up a page (half a screen)
865 b or <PageUp> back a screen
866 g back to the start
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000867
Bram Moolenaar071d4272004-06-13 20:20:40 +0000868 q, <Esc> or CTRL-C stop the listing
869 : stop the listing and enter a
870 command-line
871 <C-Y> yank (copy) a modeless selection to
872 the clipboard ("* and "+ registers)
873 {menu-entry} what the menu is defined to in
874 Cmdline-mode.
Bram Moolenaar25c9c682019-05-05 18:13:34 +0200875 <LeftMouse> next page (*)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000876
877Any other key causes the meaning of the keys to be displayed.
878
Bram Moolenaar25c9c682019-05-05 18:13:34 +0200879(*) Clicking the left mouse button only works:
Bram Moolenaar071d4272004-06-13 20:20:40 +0000880 - For the GUI: in the last line of the screen.
881 - When 'r' is included in 'mouse' (but then selecting text won't work).
882
883
884Note: The typed key is directly obtained from the terminal, it is not mapped
885and typeahead is ignored.
886
Bram Moolenaar1e015462005-09-25 22:16:38 +0000887The |g<| command can be used to see the last page of previous command output.
888This is especially useful if you accidentally typed <Space> at the hit-enter
889prompt.
890
Bram Moolenaar91f84f62018-07-29 15:07:52 +0200891 vim:tw=78:ts=8:noet:ft=help:norl: