Created
November 15, 2020 19:37
-
-
Save flibustenet/3b205f5d5864b190def99a51037c6afd to your computer and use it in GitHub Desktop.
vimrc go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source $VIMRUNTIME/defaults.vim | |
let g:go_fmt_command = "goimports" | |
set ignorecase | |
set smartcase | |
set softtabstop=4 | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set ai | |
set number | |
autocmd BufNewFile,BufRead *.go map <buffer> tt w<cr>:GoTest<cr> | |
autocmd BufNewFile,BufRead *.go map <buffer> bb w<cr>:GoBuild<cr> | |
autocmd BufNewFile,BufRead *.go map <buffer> rr w<cr>:GoBuild<cr>:GoRun<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment