본문 바로가기
Programming/환경셋팅

vim 에서 go syntax highlight

by Chan_찬 2016. 4. 5.
728x90

vim 에서 go syntax highlight

go.vim 파일 찾기


$ mkdir ~/.vim
$ mkdir ~/.vim/syntax
    • $GOROOT/misc/vim/syntax/go.vim 에 파일 존재한다면 사용
    • 없으면 이것 다운 
go.vim
다운로드
  1. 파일복사
    $ cp .../go.vim ~/.vim/syntax/go.vim
  2. vimrc에 아래내용 추가
    $ vi ~/.vimrc
  3. filetype on au BufRead,BufNewFile *.go set filetype=go

 

728x90
728x90

'Programming > 환경셋팅' 카테고리의 다른 글

AWS S3 - ec2에 mount 하기 - s3fs보다 2배 빠르다 - goofys  (0) 2019.12.31
Data Ingestion, Gobblin  (0) 2016.09.27
node.js 설치  (0) 2016.04.03
Mongo DB (NoSQL) 설치  (0) 2016.03.30
chkconfig 등록 / 설정 / 활용  (0) 2016.03.30
Buy me a coffeeBuy me a coffee

댓글