Added functionality in vim go

This commit is contained in:
TuDatTr
2020-02-05 10:05:04 +01:00
parent ef1c816284
commit ff8227ac64
5 changed files with 7 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
" Basics
set autoindent noexpandtab tabstop=4 shiftwidth=4
" Shortcuts
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
abbrev funct func Test(t *testing.T) {<CR>}<Esc>kwwi
abbrev trun t.Run("", func(t *testing.T) {<CR>})<Esc>%la
abbrev terr t.Errorf("got %d, want %d", got, want)
abbrev fori for i := 0; i < ; i++{<CR>}<Esc>k2f;i
" Compiling