aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-08-04 23:53:11 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-08-04 23:53:11 -0400
commit4dc4efc36fad058298d69d4b2533beded3293c33 (patch)
treee5901ccb3b487097882c4293312a825c8fbd305d /runtime/plugin
parenta8e973dea6871ccce4a86a104bfbed05ad671e5e (diff)
parent66ceb5a487eff0b856142b41ce0a95d3b1ea85e5 (diff)
downloadrneovim-4dc4efc36fad058298d69d4b2533beded3293c33.tar.gz
rneovim-4dc4efc36fad058298d69d4b2533beded3293c33.tar.bz2
rneovim-4dc4efc36fad058298d69d4b2533beded3293c33.zip
Merge #4449 'man.vim'
Diffstat (limited to 'runtime/plugin')
-rw-r--r--runtime/plugin/man.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/plugin/man.vim b/runtime/plugin/man.vim
index 8e5062a209..c47459a551 100644
--- a/runtime/plugin/man.vim
+++ b/runtime/plugin/man.vim
@@ -1,6 +1,10 @@
-if get(g:, 'loaded_man', 0)
+" Maintainer: Anmol Sethi <anmol@aubble.com>
+
+if exists('g:loaded_man')
finish
endif
let g:loaded_man = 1
-command! -count=0 -nargs=+ Man call man#get_page(<count>, <f-args>)
+command! -complete=customlist,man#complete -nargs=* Man call man#open_page_command(<f-args>)
+
+nnoremap <silent> <Plug>(Man) :<C-U>call man#open_page_mapping(v:count, v:count1, expand('<cWORD>'))<CR>