If we use server, than we can't use sudo command which was used in the last page.
Then, (Ubuntu)
1) If ~/.vim/ftdetect doesn't exist, than make it
mkdir ~/.vim
cd ~/.vim
mkdir ftdetect
cd ftdetect
2) INCAR.vim
Make INCAR.vim in the folder ftdetect whose content is this:
"VASP INCAR
au BufNewFile,BufRead INCAR setf fortran
That's all.
Then vasp's INCAR file is highlighted according to the syntax rule of fortran.
Example view