Michal Kurgan schrieb: > Hello! > > I've found strange behaviour in vim.
maybe it's rather caused by your strange setup? > When doing "autocmd VimEnter * nested badd ..." syntax highlight work as > expected, means i see colors. I can use "bnext" and see colors in all badd'ed > files. didn't check the above, but expected to work > However if i do "autocmd VimEnter * nested source ..." and inside the file i > use badd, then there are no colors in buffers unless i run "edit ..." (this > can be done in the sourced file). When using bnext i don't see colors > (i.e. "syntax" returns "No Syntax items defined for this buffer). works here, without problems: gvim.exe -N -u e_vimrc -U NONE " --- e_vimrc --- au VimEnter * nested source addfiles.vim syntax on " --- addfiles.vim --- badd start.bat badd e_vimrc > I guess that some issue with autocomd's. Is there something that i miss? How > can i correctly add buffer in the file sourced in "autocmd VimEnter". usually to have some files in the buffer list after startup, one will use :args (much better than :edit-ing all the files). -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
