aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorAnmol Sethi <anmol@aubble.com>2016-08-05 00:04:48 -0400
committerAnmol Sethi <anmol@aubble.com>2016-08-06 19:49:29 -0400
commitf665bde183b5f44d82bd4cb66e0241c242c34766 (patch)
tree666bcc58f2c6c0bcdc9b522b1c94bb8931b7ca1a /runtime/plugin
parent64013a5debe7ae92c8044dfd18faf8f8385dd66d (diff)
downloadrneovim-f665bde183b5f44d82bd4cb66e0241c242c34766.tar.gz
rneovim-f665bde183b5f44d82bd4cb66e0241c242c34766.tar.bz2
rneovim-f665bde183b5f44d82bd4cb66e0241c242c34766.zip
man.vim: default K mapping
- Also some small improvements in other parts.
Diffstat (limited to 'runtime/plugin')
-rw-r--r--runtime/plugin/man.vim4
1 files changed, 2 insertions, 2 deletions
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(<f-args>)
+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, expand('<cWORD>'))<CR>
+nnoremap <silent> <Plug>(Man) :<C-U>call man#open_page_mapping(v:count, v:count1, &filetype ==# 'man' ? expand('<cWORD>') : expand('<cword>'))<CR>