2013년 11월 7일 목요일

Make Vim Highlight Syntax for Vasp INCAR : without sudo

This post is continuation of the last one, "Make Vim Highlight Syntax for Vasp INCAR"

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