lambdalisue / vim-manpager

Use Vim as a MANPAGER program
MIT License
62 stars 5 forks source link

section number before page, e.g. man 3 glob #8

Closed Konfekt closed 8 years ago

Konfekt commented 8 years ago

if the first argument for Man is a single number, say Man 3 glob, then man should open glob(3). In particular, hitting K on glob(3) should invoke Man 3 glob and not Man glob.

Konfekt commented 8 years ago

In particular, Man should not replace a space `by-in that case (as now, for exampleMan 3 globsearches forMan 3-glob`.

lambdalisue commented 8 years ago

Could you list up the possible patterns and expectations? I don't really know all patterns.

Konfekt commented 8 years ago

In fact, perhaps my previous suggestion was not a good one. On ZSH, typing man git grep would open man git-grep so I expected :Man to do the same.

Turns out, didn't know about it, that for example man 3 glob opens glob(3), so a leading word of digits is always the section number. I pushed a commit for that.

Accidentally both commits are now in the patch-1 branch.

lambdalisue commented 8 years ago

Accidentally both commits are now in the patch-1 branch.

Better to split the branch. Could you split it and git push --force? (from current master)

And also please refer this issue in the PR :-)