Hello list,
echoing from inside autocommands seems erratic. Consider:
command! Echo1 redraw | echomsg 'First line' | echomsg 'Second line'
command! Echo2 call echo#Echo()
" In file ~/.vim/autoload/echo.vim:
function! echo#Echo()
redraw | echomsg 'First line' | echomsg 'Second line'
endfunction
:Echo1 and :Echo2 do exactly the same thing and they do it right: Output
two lines of text in the messages area. From inside autocommands it's
another story: Sometimes they work, sometimes the output is incomplete.
:Echo1 :Echo2 (autoload)
(from cmd-line) OK OK
ColorScheme OK OK
WinEnter OK* OK*
VimEnter incomplete incomplete**
CursorHold, InsertLeave incomplete incomplete
* OK with :sp and :vsp, but not CTRL-W w
** OK on my Mac (MacVim 7.3 and terminal Vim 7.2)
What is going on here? I'm on Vim 7.3.429 on Ubuntu 12.04.
Thanks, glts
--
You received this message from the "vim_dev" 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