Usage: * Add the vmap ?? line given below to your vimrc. * In Vim press v to begin selection. * move cursor to end of selection (region will be highlighted). * Press ?? * The search results will appear in your web browser. :vmap ?? :silent exec \ ":!c:/opera/6*/opera.exe \\\"http://www.google.com/search?q=".substitute(@*,"\\W\\+\\\\|\\<\\w\\>"," ","g") \ . "\\\" " The vmap takes the visually selected region, and removes all non word characters and single characters in region, and launches the query on the phrase. You can replace the vmap selection by above to query for .
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
Version |
|
dbkwik:vim/property/wikiPageUsesTemplate | |
Previous |
|
Author |
|
Complexity |
|
Created |
|
ID |
|
NEXT |
|
Rating |
|
abstract |
|