[RFC] man.vim: remove <Plug> mappings (#5290)

- :Man with no arguments opens the manapage for the
  <cWORD> (man buffers) or <cword> (non-man buffers).
- remove now irrelevent comment about -P flag
This commit is contained in:
Anmol Sethi
2016-09-03 21:53:58 -04:00
committed by Justin M. Keyes
parent 626065d385
commit 9bba8ba372
4 changed files with 10 additions and 22 deletions

View File

@@ -5,15 +5,7 @@ if exists('g:loaded_man')
endif
let g:loaded_man = 1
command! -range=0 -complete=customlist,man#complete -nargs=+ Man call man#open_page(v:count, v:count1, <q-mods>, <f-args>)
function! s:cword() abort
return &filetype ==# 'man' ? expand('<cWORD>') : expand('<cword>')
endfunction
nnoremap <silent> <Plug>(man) :<C-U>execute 'Man ' .<SID>cword()<CR>
nnoremap <silent> <Plug>(man_vsplit) :<C-U>execute 'vertical Man '.<SID>cword()<CR>
nnoremap <silent> <Plug>(man_tab) :<C-U>execute 'tab Man ' .<SID>cword()<CR>
command! -range=0 -complete=customlist,man#complete -nargs=* Man call man#open_page(v:count, v:count1, <q-mods>, <f-args>)
augroup man
autocmd!