From c2122f4a37f3930915ff7f2085ef07a472ee584c Mon Sep 17 00:00:00 2001 From: Jacob Zimmerman Date: Wed, 25 Feb 2015 04:18:27 -0500 Subject: [PATCH] Plugin vim-superman This plugin actually allows you to view man pages in Vim! Just add the text vman() { vim -c "SuperMan $*" if [ "$?" != "0" ]; then echo "No manual entry for $*" fi } to your ~/.bashrc, ~/.zshrc, or other config file, and then run vman git to open the man page for git in Vim! You can also press K on a word in Vim to bring up the man page for that word. --- vimrc.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc.vim b/vimrc.vim index 8cef55f..18fdad3 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -31,6 +31,9 @@ Plugin 'tpope/vim-fugitive' " ----- Other text editing features ----------------------------------- Plugin 'Raimondi/delimitMate' +" ----- man pages, tmux ----------------------------------------------- +Plugin 'jez/vim-superman' + call vundle#end() filetype plugin indent on @@ -132,4 +135,7 @@ augroup mydelimitMate au FileType python let b:delimitMate_nesting_quotes = ['"', "'"] augroup END +" ----- jez/vim-superman settings ----- +" better man page support +noremap K :SuperMan