Under VIM, the NESC statement is highlighted

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.