I use Django a lot and I just want to open all .html files with the htmldjango syntax rather than html syntax. Is there a way for me to tell vim to open all html files with a htmldjango syntax?
Because at the moment, everytime I open an html file, I have to always click on
Syntax
and set it to
HTML -> Django HTML Template
Best Answer
To tell VIM to use this style evertytime it loads and HTML file put this into your VIMRC:
You can quickly edit your VIMRC file by executing
:edit $MYVIMRC
.