]> git.rmz.io Git - dotfiles.git/commitdiff
vim: add viewdoc plugin
authorSamir Benmendil <samir.benmendil@gmail.com>
Tue, 22 Apr 2014 23:55:16 +0000 (00:55 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Tue, 22 Apr 2014 23:55:16 +0000 (00:55 +0100)
vim/vimrc

index f8a52f69f0cb42686ae32555d46e29cb4edbe54e..5930b407ca407ffe92dec153ad537e7e10712a89 100644 (file)
--- 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', '<cword>')<cr>
+
 " functions {{{1
 " auto source vimrc when saved
 autocmd bufwritepost vimrc source $MYVIMRC