On further experimentation, I've found that vim apparently always overwrites a blank message: :echomsg '' :echomsg 'Foo' :messages Foo
So the overwriting is at least predictable even if it's surprising. But the issue of having a blank message written in the first place when you enter and leave insert mode is annoying. David On Mon, Aug 4, 2014 at 11:25 PM, David Barnett <[email protected]> wrote: > Also discovered it only happens in nocompatible mode. > > David > > > On Mon, Aug 4, 2014 at 11:07 PM, David Barnett <[email protected]> > wrote: > >> I noticed a vim quirk where there's an extra blank line in the :messages >> output after first entering and leaving insert mode. The next :echomsg >> after that overwrites the blank line so there's no longer a blank line. >> >> For example: >> vim >> :messages >> Messages maintainer: Bram Moolenaar <[email protected]> >> i<Esc> >> :messages >> Messages maintainer: Bram Moolenaar <[email protected]> >> >> :echomsg 'Hello' >> Hello >> :messages >> Messages maintainer: Bram Moolenaar <[email protected]> >> Hello >> >> It's a small quirk, but is there any explanation why it's there, and any >> way to fix it? I noticed it when using a script that scrapes the output of >> :messages after each command and gets very confused by the fact that >> messages are randomly added and then removed retrospectively. >> >> David >> >> -- >> -- >> You received this message from the "vim_use" maillist. >> Do not top-post! Type your reply below the text you are replying to. >> For more information, visit http://www.vim.org/maillist.php >> >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "vim_use" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/vim_use/AcGW6UMCbeY/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
