Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Vim: How to declare that a file with a certain name should be of some file type?

I have a file named ini which receives no syntax highlighting since there is no file extension to help identify the file type. How would I go about declaring that all files which are named ini should be of type dosini?

No file type
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

:h ftdetect may help you. Basically it is

autocmd BufNewFile,BufRead *.ini setfiletype dosini

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading