HiPhish / info.vim

Browse info files from Vim (mirror)
https://gitlab.com/HiPhish/info.vim
MIT License
40 stars 6 forks source link

propose shell function #3

Closed Konfekt closed 6 years ago

Konfekt commented 6 years ago

To supplement the built-in info reader, how about proposing in the docs a function, named say vinfo in .bash/zshrc that calls :Info, for example

vinfo() {
  vim +"Info "$@"" +only
}
HiPhish commented 6 years ago

I have let your idea sink in for a few days, and I have concluded not to. Here are my reasons:

None of these reasons are enough on their own, but I think put together they outweigh whatever benefit there might be. I am open to other opinions though, so if you disagree I would like to hear about it.

Konfekt commented 6 years ago

Ok, nothing wrong with that. To elaborate: Opposite to your viewpoint that

Shell tricks are neat, but they don't really have anything to do with Vim.

the proposal was based on people using on my idea that people will use info.vim to replace the info reader by something they are more convenient with, but nowhere it is mentioned how. Just as there is a man reader in Vim, see :help manpager. As it was for me the essence of info.vim, I though it merited a shell script one liner.

HiPhish commented 5 years ago

I just added the little snippet to the README instead of the manual. I think you are right, it's a handy little trick and the README is short enough that it won't bloat anything.