On Thu, 13 Mar 2025, Gabor Urban wrote:
> Hi guys, > > I would like to have some hints about my issue. > > I am using vim 9.1 on an MS Win 11 Home (64 bit). I have downloaded a > syntax file from the homage (todo.vim) and set up to work for me. > > I added to my _vimr file: > au BufRead,BufNewFile *.todo setfiletype todo > au BufRead,BufNewFile *.tdx setfiletype todo > > and that works fine. Recently I have decided to load a specific file > on startup so added: > autocmd VimEnter * silent edit C:/PATH/todo.tdx > > The file is loaded, but no proper highlight is done. The only reason > could be, that the two autocommands do not work together. > > Any ideas are welcome, and thanks in advance, Try to add ++nested to your BufRead autocommand, see :h autocmd-nested Thanks, Christian -- A star captain's most solemn oath is that he will give his life, even his entire crew, rather than violate the Prime Directive. -- Kirk, "The Omega Glory", stardate unknown -- -- 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 vim_use+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z9M/uB5BEOGH14VG%40256bit.org.