Added functionality in vim go
parent
ef1c816284
commit
ff8227ac64
|
@ -9,4 +9,4 @@ t:/home/tuan/Templates
|
||||||
w:/home/tuan/workspace_l/Projects
|
w:/home/tuan/workspace_l/Projects
|
||||||
k:/home/tuan/Documents/Protokolle/FSE
|
k:/home/tuan/Documents/Protokolle/FSE
|
||||||
q:/home/tuan/.nextcloud/Quick Drop
|
q:/home/tuan/.nextcloud/Quick Drop
|
||||||
':/home/tuan/.dotfiles
|
':/home/tuan/isofiles
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
" Basics
|
" Basics
|
||||||
set autoindent noexpandtab tabstop=4 shiftwidth=4
|
set autoindent noexpandtab tabstop=4 shiftwidth=4
|
||||||
" Shortcuts
|
" Shortcuts
|
||||||
abbrev funct func<Space>Test(t<Space>*testing.T)<Space>{<CR>}<Esc>kwwi
|
abbrev funct func Test(t *testing.T) {<CR>}<Esc>kwwi
|
||||||
abbrev trun t.Run("", func(t *testing.T)<Space>{<CR>})<Esc>%la
|
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
|
abbrev fori for i := 0; i < ; i++{<CR>}<Esc>k2f;i
|
||||||
|
|
||||||
" Compiling
|
" Compiling
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit b686094cef83ecc913c666a6ebba7daacccecd47
|
|
@ -4,4 +4,5 @@ filetype on
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
Plug 'fatih/vim-go'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
|
@ -5,6 +5,7 @@ nnoremap <C-L> <C-W><C-L>
|
||||||
nnoremap <C-H> <C-W><C-H>
|
nnoremap <C-H> <C-W><C-H>
|
||||||
nnoremap J :bn<CR>
|
nnoremap J :bn<CR>
|
||||||
nnoremap K :bp<CR>
|
nnoremap K :bp<CR>
|
||||||
|
map <C-B> <Esc>:b<space>
|
||||||
nnoremap <C-u> :earlier<CR>
|
nnoremap <C-u> :earlier<CR>
|
||||||
nnoremap <C-U> :later<CR>
|
nnoremap <C-U> :later<CR>
|
||||||
noremap Y "+y
|
noremap Y "+y
|
||||||
|
|
Loading…
Reference in New Issue