add vim-go and first mappings
This commit is contained in:
parent
10244abb9f
commit
6eed4e1928
2 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ augroup go
|
||||||
autocmd FileType go set softtabstop=2
|
autocmd FileType go set softtabstop=2
|
||||||
autocmd FileType go set shiftwidth=2
|
autocmd FileType go set shiftwidth=2
|
||||||
autocmd FileType go set noexpandtab
|
autocmd FileType go set noexpandtab
|
||||||
|
autocmd FileType go nmap <Leader>gd <Plug>(go-doc)
|
||||||
|
autocmd FileType go nmap gd <Plug>(go-def)
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
autocmd FileType go let b:auto_trim_whitespace=1
|
autocmd FileType go let b:auto_trim_whitespace=1
|
||||||
|
|
|
||||||
1
.vimrc
1
.vimrc
|
|
@ -119,6 +119,7 @@ Bundle 'honza/vim-snippets'
|
||||||
Plugin 'JuliaLang/julia-vim'
|
Plugin 'JuliaLang/julia-vim'
|
||||||
Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
Bundle 'farseer90718/vim-taskwarrior'
|
Bundle 'farseer90718/vim-taskwarrior'
|
||||||
|
Bundle 'fatih/vim-go'
|
||||||
"https://git.wincent.com/command-t.git
|
"https://git.wincent.com/command-t.git
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue