keith / investigate.vim

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

Does not work on visual selection #18

Closed zhuochun closed 8 years ago

zhuochun commented 8 years ago

gK is mapped to normal mode.

In visual mode, I tried to do run :call investigate#Investigate(), it does not use what I have selected, but the word under cursor.

keith commented 8 years ago

This has been a limitation forever. I definitely think we can tackle this problem though. Firstly I've never tested sending queries with spaces to any of the providers. We need to test this, probably by having a configurable separator for each service. I'm assuming most will be +. Then we'd need to correctly map the command in visual mode to pass the correct text. Feel free to submit a PR in this direction!