mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
go support
This commit is contained in:
parent
d284a3b989
commit
b4f159c6bd
2 changed files with 3 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ Bundle 'scrooloose/syntastic'
|
||||||
|
|
||||||
Bundle 'kchmck/vim-coffee-script'
|
Bundle 'kchmck/vim-coffee-script'
|
||||||
Bundle 'vim-scripts/glsl.vim'
|
Bundle 'vim-scripts/glsl.vim'
|
||||||
Bundle 'jnwhiteh/vim-golang'
|
Bundle 'fatih/vim-go'
|
||||||
Bundle 'groenewege/vim-less'
|
Bundle 'groenewege/vim-less'
|
||||||
"Bundle 'gkz/vim-ls'
|
"Bundle 'gkz/vim-ls'
|
||||||
Bundle 'tpope/vim-markdown'
|
Bundle 'tpope/vim-markdown'
|
||||||
|
|
|
||||||
3
vimrc
3
vimrc
|
|
@ -111,7 +111,7 @@ set list
|
||||||
"OS clipboard integration
|
"OS clipboard integration
|
||||||
set clipboard^=unnamed
|
set clipboard^=unnamed
|
||||||
|
|
||||||
"filetype specific settings
|
"filetype/language specific settings
|
||||||
autocmd FileType make set noexpandtab "makefiles need tabs
|
autocmd FileType make set noexpandtab "makefiles need tabs
|
||||||
autocmd FileType ruby set softtabstop=2 shiftwidth=2
|
autocmd FileType ruby set softtabstop=2 shiftwidth=2
|
||||||
autocmd FileType eruby set softtabstop=2 shiftwidth=2
|
autocmd FileType eruby set softtabstop=2 shiftwidth=2
|
||||||
|
|
@ -120,6 +120,7 @@ au BufRead,BufNewFile Guardfile setfiletype ruby
|
||||||
au BufRead,BufNewFile *.skim setfiletype slim
|
au BufRead,BufNewFile *.skim setfiletype slim
|
||||||
au BufRead,BufNewFile *.opal setfiletype ruby
|
au BufRead,BufNewFile *.opal setfiletype ruby
|
||||||
let g:syntastic_ruby_checkers = ['mri', 'rubocop']
|
let g:syntastic_ruby_checkers = ['mri', 'rubocop']
|
||||||
|
let g:go_fmt_command = "goimports"
|
||||||
|
|
||||||
if expand('%:t') =~? 'rfc\d\+' || expand('%:t') =~? 'draft-.*-\d\{2,}'
|
if expand('%:t') =~? 'rfc\d\+' || expand('%:t') =~? 'draft-.*-\d\{2,}'
|
||||||
setfiletype rfc
|
setfiletype rfc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue