Skip to content

Commit c2122f4

Browse files
committed
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.
1 parent e69a4fb commit c2122f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vimrc.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Plugin 'tpope/vim-fugitive'
3131
" ----- Other text editing features -----------------------------------
3232
Plugin 'Raimondi/delimitMate'
3333

34+
" ----- man pages, tmux -----------------------------------------------
35+
Plugin 'jez/vim-superman'
36+
3437
call vundle#end()
3538

3639
filetype plugin indent on
@@ -132,4 +135,7 @@ augroup mydelimitMate
132135
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"]
133136
augroup END
134137

138+
" ----- jez/vim-superman settings -----
139+
" better man page support
140+
noremap K :SuperMan <cword><CR>
135141

0 commit comments

Comments
 (0)