The Computer Oracle

VIM - how to open .html files with django html syntax rather than just html syntax?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5

--

Chapters
00:00 Vim - How To Open .Html Files With Django Html Syntax Rather Than Just Html Syntax?
00:33 Accepted Answer Score 11
00:52 Thank you

--

Full question
https://superuser.com/questions/700368/v...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#vim #html #filetypes #django

#avk47



ACCEPTED ANSWER

Score 11


To tell VIM to use this style evertytime it loads and HTML file put this into your VIMRC:

au BufNewFile,BufRead *.html set filetype=htmldjango

You can quickly edit your VIMRC file by executing :edit $MYVIMRC.