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