Added functionality in vim go

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

View File

@ -9,4 +9,4 @@ t:/home/tuan/Templates
w:/home/tuan/workspace_l/Projects
k:/home/tuan/Documents/Protokolle/FSE
q:/home/tuan/.nextcloud/Quick Drop
':/home/tuan/.dotfiles
':/home/tuan/isofiles

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

@ -0,0 +1 @@
Subproject commit b686094cef83ecc913c666a6ebba7daacccecd47

View File

@ -4,4 +4,5 @@ filetype on
call plug#begin()
Plug 'lervag/vimtex'
Plug 'sheerun/vim-polyglot'
Plug 'fatih/vim-go'
call plug#end()

View File

@ -5,6 +5,7 @@ nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap J :bn<CR>
nnoremap K :bp<CR>
map <C-B> <Esc>:b<space>
nnoremap <C-u> :earlier<CR>
nnoremap <C-U> :later<CR>
noremap Y "+y