pig configure vim highlight

(1)
Download the compressed package uploaded at the end of the article, go to the corresponding Linux machine, and decompress it

(2)
Execute mkdir -p ~/.vim/syntax/ to create a directory
Execute mkdir -p ~/.vim/ftdetect/ to create a directory

( 3)
Execute cp -a pig.vim-master/syntax/pig.vim ~/.vim/syntax/  
execute cp -a pig.vim-master/ftdetect/pig.vim ~/.vim/ftdetect/  

(4)
Edit vi ~/.vimrc file,
add the following code to it:

Java code copy code  Favorite code
  1. augroup filetypedetect   
  2.   au BufNewFile,BufRead *.pig set filetype=pig syntax=pig   
  3. augroup END   
augroup filetypedetect
  au BufNewFile,BufRead *.pig set filetype=pig syntax=pig
augroup END




(5) Log out and log in again to take effect:

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326877049&siteId=291194637
pig
pig