Skip to content

Commit

Permalink
Plugin vim-superman
Browse files Browse the repository at this point in the history
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 Nov 12, 2016
1 parent e69a4fb commit c2122f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vimrc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Copy link
Owner Author

@jez jez commented on c2122f4 Nov 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.