Преглед изворни кода

add autocmd for go filetype

Kyle P Davis пре 11 година
родитељ
комит
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