Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8150f8d

Browse files
committed
Merge pull request #40 from critiqjo/help-empty
ViewDocHelp: add support for zero arguments
2 parents 499fbc2 + 5162ff0 commit 8150f8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎plugin/viewdoc_help.vim‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ let g:loaded_viewdoc_help = 1
1313

1414
""" Interface
1515
" - command
16-
command -bar -bang -nargs=1 -complete=help ViewDocHelp
17-
\ call ViewDoc('<bang>'=='' ? 'new' : 'doc', <f-args>, 'help')
16+
command -bar -bang -nargs=? -complete=help ViewDocHelp
17+
\ call ViewDoc('<bang>'=='' ? 'new' : 'doc', <q-args>, 'help')
1818
" - abbrev
1919
if !exists('g:no_plugin_abbrev') && !exists('g:no_viewdoc_abbrev')
2020
cnoreabbrev <expr> h getcmdtype()==':' && getcmdline()=='h' ? 'ViewDocHelp' : 'h'

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /