Added some vim-go funcs and added a little sound utility script
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
" Basics
|
||||
set autoindent noexpandtab tabstop=4 shiftwidth=4
|
||||
" Shortcuts
|
||||
imap ;main package main<CR><CR>import (<CR>"fmt"<CR>)<CR><CR>func main() {<CR>}<Esc>O
|
||||
|
||||
|
||||
" Compiling
|
||||
map <C-i> <Esc>:GoImport
|
||||
map <C-c><C-c> <Esc>:!clear<CR><CR>:GoRun<CR>
|
||||
map <C-c><C-b> <Esc>:!clear<CR><CR>:GoBuild<CR>
|
||||
map <C-c><C-t> <Esc>:!clear<CR><CR>:GoTest<CR>
|
||||
map <C-c><C-f> <Esc>:!clear<CR><CR>:GoTestFunc<CR>
|
||||
map <C-c><C-d> <Esc>:!clear<CR><CR>:GoDebugStart<CR>
|
||||
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>
|
||||
nnoremap gd <Esc>:GoDef
|
||||
nnoremap <F1> <Esc>:GoDoc<CR>
|
||||
|
||||
|
||||
map <C-c><C-w> <Esc>:!clear; GOOS=windows GOARCH=386 go build -o %<.exe %<CR><CR>
|
||||
|
||||
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
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
" setlocal spell spelllang=de_de
|
||||
" set nospell
|
||||
|
||||
|
||||
|
||||
" Begin Shortcuts
|
||||
|
||||
" Compilation
|
||||
|
||||
Reference in New Issue
Block a user