thinca / vim-ref

Integrated reference viewer.
204 stars 39 forks source link

clean code for man page option #44

Closed xiehuc closed 10 years ago

xiehuc commented 10 years ago

before, i thought pass param like c, one function to one function. but since v:count1 is always stored, so doesn't need pass it as parameter.

still in ref.vim need a special judge for man, because in man.vim it doesn't the query body from :Ref man keyword, or Shift+k with v:count1

i test at most case, so i think the code is stable.

Signed-off-by: xiehuc xiehuc@gmail.com

thinca commented 10 years ago

OK, thank you.

pocke commented 10 years ago

hi Bug was caused by this commit.

If don't specify a section number explicitly, it will search for the section 1.

example

:Ref man scanf
" => ref: man: No manual entry for scanf in section 1
:Ref man 3 scanf
" => show man page

(Sorry, I'm not good at English.)

thinca commented 9 years ago

@pocke I just fixed. Sorry for late.