16 lines
314 B
VimL
16 lines
314 B
VimL
|
" load vista.vim
|
||
|
packadd vista.vim
|
||
|
|
||
|
|
||
|
" Tabs and spaces
|
||
|
setlocal noexpandtab
|
||
|
setlocal tabstop=4
|
||
|
setlocal shiftwidth=4
|
||
|
setlocal softtabstop=4
|
||
|
|
||
|
" Run goimports after every save
|
||
|
autocmd BufWritePre <buffer> :keepjumps exe '%!goimports'
|
||
|
|
||
|
" A macro for the error handling template
|
||
|
let @e="oif err != nil {\<CR>}\<Esc>k"
|