add vim-go and first mappings

This commit is contained in:
Barak Michener 2014-10-07 13:57:14 -04:00
parent 10244abb9f
commit 6eed4e1928
2 changed files with 3 additions and 0 deletions

View file

@ -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
View file

@ -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