Add golang vim config
This commit is contained in:
parent
c497d410e9
commit
d72a8c9fa2
@ -38,5 +38,20 @@ set clipboard=unnamedplus
|
||||
" Tabs are 4 spaces wide
|
||||
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||||
|
||||
" Golang Specific stuff
|
||||
" Go syntax highlighting
|
||||
let g:go_highlight_fields = 1
|
||||
let g:go_highlight_functions = 1
|
||||
let g:go_highlight_function_calls = 1
|
||||
let g:go_highlight_extra_types = 1
|
||||
let g:go_highlight_operators = 1
|
||||
|
||||
" Auto formatting and importing
|
||||
let g:go_fmt_autosave = 1
|
||||
let g:go_fmt_command = "goimports"
|
||||
|
||||
" Status line types/signatures
|
||||
let g:go_auto_type_info = 1
|
||||
|
||||
execute pathogen#infect()
|
||||
filetype plugin indent on
|
||||
|
Loading…
Reference in New Issue
Block a user