aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/man.vim
blob: 82ef154725f046e22a1fbc5e331a1acdbb6e8cb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
" Maintainer: Anmol Sethi <anmol@aubble.com>

if exists('g:loaded_man')
  finish
endif
let g:loaded_man = 1

command! -count=0 -complete=customlist,man#complete -nargs=* Man call man#open_page_command(v:count, v:count1, <f-args>)

nnoremap <silent> <Plug>(Man) :<C-U>call man#open_page_mapping(v:count, v:count1, &filetype ==# 'man' ? expand('<cWORD>') : expand('<cword>'))<CR>