소스 검색

add autocmd for go filetype

Kyle P Davis 10 년 전
부모
커밋
1fd52bf076
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .vimrc

+ 1 - 0
.vimrc

@@ -26,6 +26,7 @@ vmap <C-c> :w !pbcopy<CR><CR>
 " force syntax on a few file types
 " force syntax on a few file types
 autocmd BufNewFile,BufRead *.json set ft=javascript
 autocmd BufNewFile,BufRead *.json set ft=javascript
 autocmd BufNewFile,BufRead *.md set ft=markdown
 autocmd BufNewFile,BufRead *.md set ft=markdown
+autocmd BufNewFile,BufRead *.go set filetype=go
 
 
 " run js-beautify with the = key
 " run js-beautify with the = key
 autocmd FileType javascript setlocal equalprg=js-beautify\ -f\ -\ -q\ -t\ -j\ -w\ 140\ --good-stuff
 autocmd FileType javascript setlocal equalprg=js-beautify\ -f\ -\ -q\ -t\ -j\ -w\ 140\ --good-stuff