【pig】pig的vim高亮设置

来源:互联网 发布:企业域名邮箱 编辑:程序博客网 时间:2024/06/04 19:39

1. 到http://www.vim.org/scripts/script.php?script_id=2186下载pig.vim

2. copy pig.vim file into your ~/.vim/syntax/ directory; 

3. add the following three lines to your ~/.vimrc file: 
augroup filetypedetect 
  au BufNewFile,BufRead *.pig set filetype=pig syntax=pig 
augroup END