Hello,
I was wondering if it is possible to set a particular syntax highlighting for a particular file type (i.e. peachpuff.vim for *.c) and a different syntax highlighting for a different file type (i.e. zellner.vim for *.py).
I would think that this is possible, but can it be easily done in the .vimrc file. I am hoping that I can just use something to the effect
if (*.c) use peachpuff
else use zellner
But I'm not sure how to do if statements and such in my vimrc file.
Thanks!
I was wondering if it is possible to set a particular syntax highlighting for a particular file type (i.e. peachpuff.vim for *.c) and a different syntax highlighting for a different file type (i.e. zellner.vim for *.py).
I would think that this is possible, but can it be easily done in the .vimrc file. I am hoping that I can just use something to the effect
if (*.c) use peachpuff
else use zellner
But I'm not sure how to do if statements and such in my vimrc file.
Thanks!