|
|
@ -59,6 +59,7 @@ Plug 'raichoo/haskell-vim' |
|
|
|
Plug 'OCamlPro/ocp-indent' |
|
|
|
Plug 'OCamlPro/ocp-indent' |
|
|
|
Plug 'slim-template/vim-slim' |
|
|
|
Plug 'slim-template/vim-slim' |
|
|
|
Plug 'isRuslan/vim-es6' |
|
|
|
Plug 'isRuslan/vim-es6' |
|
|
|
|
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } |
|
|
|
|
|
|
|
|
|
|
|
" Flake8 Integration |
|
|
|
" Flake8 Integration |
|
|
|
Plug 'nvie/vim-flake8' |
|
|
|
Plug 'nvie/vim-flake8' |
|
|
@ -185,12 +186,6 @@ let g:go_highlight_extra_types = 1 |
|
|
|
" Make tabs display as 4 spaces for Go files (makes them easier to read) |
|
|
|
" Make tabs display as 4 spaces for Go files (makes them easier to read) |
|
|
|
autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 |
|
|
|
autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 |
|
|
|
|
|
|
|
|
|
|
|
" Go linting on write. This takes advantage of :GoMetaLinter in vim-go and requires golint to be installed |
|
|
|
|
|
|
|
autocmd BufWritePost,FileWritePost *.go execute 'GoMetaLinter' | cwindow |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" If GoMetaLinter runs for longer than 5 seconds, time it out |
|
|
|
|
|
|
|
let g:go_metalinter_deadline = "5s" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Hotkeys |
|
|
|
" Hotkeys |
|
|
|
" Note noremap is a normal mode non-recursive mapping |
|
|
|
" Note noremap is a normal mode non-recursive mapping |
|
|
|
" nnoremap and nmap make the bind only work in normal mode |
|
|
|
" nnoremap and nmap make the bind only work in normal mode |
|
|
|