2020-01-26 00:08:10 +01:00
|
|
|
" Basics
|
|
|
|
set autoindent noexpandtab tabstop=4 shiftwidth=4
|
2019-04-15 12:43:08 +02:00
|
|
|
" Shortcuts
|
|
|
|
|
|
|
|
|
|
|
|
" Compiling
|
2020-01-29 23:12:54 +01:00
|
|
|
nnoremap <C-c><C-f> <Esc>:GoFmt<CR>
|
|
|
|
nnoremap <C-c><C-c> <Esc>:!clear<CR><CR>:GoRun<CR>
|
|
|
|
nnoremap <C-c><C-b> <Esc>:!clear<CR><CR>:GoBuild<CR>
|
|
|
|
nnoremap <C-c><C-t> <Esc>:!clear<CR><CR>:GoTest<CR>
|
|
|
|
nnoremap <C-c><C-f> <Esc>:!clear<CR><CR>:GoTestFunc<CR>
|
|
|
|
nnoremap <C-c><C-d> <Esc>:!clear<CR><CR>:GoDebugStart<CR>
|
2020-01-26 00:08:10 +01:00
|
|
|
nnoremap gd <Esc>:GoDef
|
|
|
|
nnoremap <F1> <Esc>:GoDoc<CR>
|
|
|
|
|
2020-01-20 01:04:10 +01:00
|
|
|
map <C-c><C-w> <Esc>:!clear; GOOS=windows GOARCH=386 go build -o %<.exe %<CR><CR>
|
2020-01-29 23:12:54 +01:00
|
|
|
|
|
|
|
abbrev funct func<Space>Test(t<Space>*testing.T)<Space>{<CR>}<Esc>kwwi
|
|
|
|
abbrev trun t.Run("", func(t *testing.T)<Space>{<CR>})<Esc>%la
|