Skip to content
Permalink
Browse files

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.
  • Loading branch information...
jez committed Feb 25, 2015
1 parent e69a4fb commit c2122f4a37f3930915ff7f2085ef07a472ee584c
Showing with 6 additions and 0 deletions.
  1. +6 −0 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 <cword><CR>

1 comment on commit c2122f4

@jez

This comment has been minimized.

Copy link
Owner Author

commented on c2122f4 Nov 13, 2016

Please sign in to comment.
You can’t perform that action at this time.