Hello.
When I call echo on BufWinEnter all works as expected:
I see BufWinEnter message instead of statusmessage below displayed file.
autocmd BufWinEnter *
\ echo "BufWinEnter"
But when I call confirm on BufWinEnter I see confirm queistion before
displaying file.
autocmd BufWinEnter *
\ if confirm( "Confirm?", "&Yes\n&No", 2, "Question" ) == 1 |
\ echo "Confirmed!" |
\ endif
Moreover, I use my own colorscheme in which MoreMsg has ctermfg=33
(I use vim in xterm with 256 colors). And when I say
:echo confirm( "Confirm?", "&Yes\n&No", 2, "Question" )
manually, I see this message with this 33 color.
But when I call confirm on BufWinEnter I see confirmation message with
121 color that not used in my colorscheme.
--
sergio.
--
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