From f665bde183b5f44d82bd4cb66e0241c242c34766 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Fri, 5 Aug 2016 00:04:48 -0400 Subject: man.vim: default K mapping - Also some small improvements in other parts. --- runtime/plugin/man.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/plugin') diff --git a/runtime/plugin/man.vim b/runtime/plugin/man.vim index c47459a551..82ef154725 100644 --- a/runtime/plugin/man.vim +++ b/runtime/plugin/man.vim @@ -5,6 +5,6 @@ if exists('g:loaded_man') endif let g:loaded_man = 1 -command! -complete=customlist,man#complete -nargs=* Man call man#open_page_command() +command! -count=0 -complete=customlist,man#complete -nargs=* Man call man#open_page_command(v:count, v:count1, ) -nnoremap (Man) :call man#open_page_mapping(v:count, v:count1, expand('')) +nnoremap (Man) :call man#open_page_mapping(v:count, v:count1, &filetype ==# 'man' ? expand('') : expand('')) -- cgit