I want to be able to select a text and have a command to open a google search in a browser.
Right now, I"m just copying and pasting. Are there any plugins that do this? I'm using Mac OSX.
|
feedback
|
|
I wrote this in about 5 minutes when I read your question, but it works on Linux anyway. Of course, change "
This uses the g register, so don't use the g register for anything you don't want overwritten by calling this command. I haven't tested it much either. It's possible that for a mac, the third line would need to be changed slightly:
but without a mac to test on, I don't know. | |||||||
feedback
|
|
Why not use:
? (as you are a mac user, you might replace Note that if your word contains | |||||
feedback
|
|
My first spontaneous thought was Urxvt's Perl capabilities. If you used that terminal emulator, it would be easy to make any text googleable (that's how I would have solved it if I wanted the function since I already use Urxvt). This wouldn't work with GVim, however. My second spontaneous thought is that Vim is open source, and thus it should be possible to customize GVim to do this. More or less work craving though, probably there are better solutions. | |||
|
feedback
|
|
If you switch | |||
|
feedback
|