Added functionality in vim go
This commit is contained in:
@@ -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
|
||||||
|
|||||||
1
vim/.vim/plugged/vim-go
Submodule
1
vim/.vim/plugged/vim-go
Submodule
Submodule vim/.vim/plugged/vim-go added at b686094cef
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user