vim中设置pig高亮

http://www.vim.org/scripts/script.php?script_id=2186

中有详细介绍。

两步操作

install details
1) copy pig.vim file into your ~/.vim/syntax/ directory;

2) add the following three lines to your ~/.vimrc file:

augroup filetypedetect
au BufNewFile,BufRead *.pig set filetype=pig syntax=pig
augroup END

注意:

1.不同的用户,不公用,都需要配置。所以确定是哪个用户使用pig编程,在该用户名下配置。

2.如果没有~/.vim/syntax,需要自己创建,用mkdir ~/.vim,然后再创建syntax。不能一起

3..vimrc文件中的内容最好黏贴,否则会出错

 

 

posted on 2013-01-16 14:26  代码王子  阅读(138)  评论(0编辑  收藏  举报

导航