From 9bba8ba372298d7cfac543085df6546e18d2c256 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sat, 3 Sep 2016 21:53:58 -0400 Subject: [RFC] man.vim: remove mappings (#5290) - :Man with no arguments opens the manapage for the (man buffers) or (non-man buffers). - remove now irrelevent comment about -P flag --- runtime/plugin/man.vim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'runtime/plugin') diff --git a/runtime/plugin/man.vim b/runtime/plugin/man.vim index df457c2243..63faa15213 100644 --- a/runtime/plugin/man.vim +++ b/runtime/plugin/man.vim @@ -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, , ) - -function! s:cword() abort - return &filetype ==# 'man' ? expand('') : expand('') -endfunction - -nnoremap (man) :execute 'Man ' .cword() -nnoremap (man_vsplit) :execute 'vertical Man '.cword() -nnoremap (man_tab) :execute 'tab Man ' .cword() +command! -range=0 -complete=customlist,man#complete -nargs=* Man call man#open_page(v:count, v:count1, , ) augroup man autocmd! -- cgit