I have text files which have extensions *.sc
. So to make syntax highlighting for some of the keywords in that type of text files I created ~/.vim/syntax/sc.cim
. Below is the file content.
user $ cd ~/.vim/syntax/
user $ cat sc.vim
" Syntax highlightor file for files ending in *.sc
syn keyword basicLanguageKeywords interface channel behavior
user $
Also I added following line to ~/.vimrc
au BufRead,BufNewFile *.sc set filetype=sc
Now I was hoping that when I do :set syntax=sc
in vim, the syntax highlighting would be in effect for *.sc
files. But it is not working.
What is wrong here ?