keith / investigate.vim

A Vim plugin for looking up documentation
http://keith.github.io/investigate.vim/
MIT License
297 stars 20 forks source link

'sh' filetype should use the built-in :Man command #13

Closed justinmk closed 9 years ago

justinmk commented 9 years ago

see https://news.ycombinator.com/item?id=8799509

:runtime ftplugin/man.vim
:Man ls
keith commented 9 years ago

I use this, I'd love this, but I'm not sure I want to force the runtime source on users.

This would be an easy setting to setup though:

let g:investigate_custom_for_sh="^i:Man ^s"

Where ^i tells investigate not to run it through open (on OS X) and ^s gets replaced with the <cword>

jalcine commented 9 years ago

Maybe have this an option to switch to use the internal :Man command?

keith commented 9 years ago

Well I would say setting the option above is the best way to do that?

jalcine commented 9 years ago

Touche!

keith commented 9 years ago

Closing recommending use of the above setting!

jalcine commented 9 years ago

@Keithbsmiley going to beat the horse back to life (hopefully not, haha) but why not make this the default setting?

keith commented 9 years ago

See above.

Keith Smiley

On Jan 24, 2015, at 12:39, Jacky Alciné notifications@github.com wrote:

@Keithbsmiley going to beat the horse back to life (hopefully not, haha) but why not make this the default setting?

— Reply to this email directly or view it on GitHub.

jalcine commented 9 years ago

I know, hence my comment. Why not consider it a default setting?

keith commented 9 years ago

I'm not sure I want to force the runtime source on users.

jalcine commented 9 years ago

Noted, didn't see that. Thanks, nonetheless!