This plugin helps perform a quick web search for the text selected in (Neo)Vim
Plug 'voldikss/vim-browser-search'
This plugin doesn't supply any default mappings. Here are some recommended key mappings
nmap <silent> <Leader>s <Plug>SearchNormal
vmap <silent> <Leader>s <Plug>SearchVisual
-
Select text and type
<Leader>s
to do a web search -
Type
<Leader>saw
in to search web for a word -
Type
<Leader>sa(
to search web for the text wrapped in the bracket -
Type
<Leader>sas
to search web for a sentence -
...
Defaut: 'google'
Default: See assets/json/engines.json
Search text
with engine
, if text
is not given, use the word under
cursor.
Also, you can use this command in visual mode, i.e., :'<,'>BrowserSearch
If you would like to add new engine supports, see assets/json/engines.json.