I'm wanting to turn on syntax highlighting in vim using the .exrc file and using the following commands:
syntax on
syntax=html
Every time I open a file I get the following message now:
No Syntax items defined for this buffer
I'm using VIM version 7.3 on OS X 10.10.4
Use the following in your ~/.vimrc
file:
filetype plugin indent on
syntax on
For more information see:
:h :filetype
:h :syntax
:h filetype
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With