Thursday, March 13, 2025

A question about autocommands

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,
--
Urbán Gábor

Linux is like a wigwam: no Gates, no Windows and an Apache inside.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAL%3D1hhzqFN7D3L%3Dno94H4Gp34LZfG_%2BjEcqMwDe3tJWoZBF-eg%40mail.gmail.com.

No comments: