]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - vim/.vimrc
Better saving behaviour for golang source files
[max/dotfiles.git] / vim / .vimrc
index bdb8feb5eb902f5ad5521231f423ca2622fdfb24..513d1f12df599747233ae451eb8cb29f73b40ada 100644 (file)
@@ -33,6 +33,7 @@ Plugin 'flazz/vim-colorschemes'
 Plugin 'benmills/vimux'
 Plugin 'tmhedberg/SimpylFold'
 Plugin 'saltstack/salt-vim'
+Plugin 'fatih/vim-go'
 
 " All of your Plugins must be added before the following line
 call vundle#end()            " required
@@ -45,9 +46,9 @@ set backupdir=$HOME/.vim/backup//
 syntax on
 set background=dark
 colorscheme molokai
-set expandtab
-set shiftwidth=2
-set softtabstop=2
+set expandtab
+set shiftwidth=2
+set softtabstop=2
 set relativenumber
 
 let g:html_indent_inctags = "html,body,head,tbody"
@@ -69,7 +70,7 @@ let g:syntastic_aggregate_errors = 1
 
 " Syntastic C++11
 let g:syntastic_cpp_compiler = 'g++'
-let g:syntastic_cpp_compiler_options = '-std=c++11'
+let g:syntastic_cpp_compiler_options = '-std=c++14'
 
 set laststatus=2
 " Set this to 1 if powerline fonts are installed.
@@ -109,3 +110,9 @@ map C :VimuxPromptCommand<CR>
 
 " Quiet netrw
 let g:netrw_silent = 1
+
+" Set folding
+set foldmethod=syntax
+
+" Better saving behaviour for go
+let g:go_fmt_experimental = 1