The default vim does not support NESC syntax highlighting, which brings inconvenience to reading source code. However, you can solve this problem by loading Nesc Syntax highlighting plug-ins, as follows:
Step one: Download plugins
Download NesC Syntax highlighting:the Syntax highlighting for NesC in http://www.vim.org/scripts/script.php?script_id=1847 Files, there are currently two versions, download the new version vim.tar.gz.
Step Two: Install the plugin
(1) Unzip vim.tar.gz get Synax folder
Tar zxvf vim.tar.gz
(2) Copy Synax
It is generally copied to ~/.vim/(or use directory as/etc/vim/) directory, as follows:
sudo cp-r syntax/ect/vim/
(3) Modify the VIMRC file
Open the VIMRC (/ETC/VIM/VIMRC) file and add the following statement at the end of the file:
Augroup Filetypedetect
au! Bufread,bufnewfile *NC Setfiletype NC
Augroup END
(4) Save exit
Under VIM, the NESC statement is highlighted