From: Samir Benmendil Date: Tue, 22 Apr 2014 23:55:16 +0000 (+0100) Subject: vim: add viewdoc plugin X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/310bf3f8e17359054d10d23774d781a851b576dd?ds=inline vim: add viewdoc plugin --- diff --git a/vim/vimrc b/vim/vimrc index f8a52f6..5930b40 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -35,6 +35,7 @@ Bundle 'firef0x/pkgbuild.vim' Bundle 'derekwyatt/vim-fswitch' " seems to have problems right now... may be add later? "Bundle 'jalcine/cmake.vim' +Bundle 'powerman/vim-plugin-viewdoc' " rtp + xdg {{{1 " remove entries first @@ -326,6 +327,10 @@ let g:vim_json_syntax_conceal = 0 let g:tex_flavor='latex' let g:Tex_DefaultTargetFormat='pdf' +" vim-viewdoc {{{2 +let g:no_viewdoc_maps = 1 +nnoremap K :call ViewDoc('doc', '') + " functions {{{1 " auto source vimrc when saved autocmd bufwritepost vimrc source $MYVIMRC