dorkhub

vim-browser-search

:cyclone: Perform a quick web search for the text selected in (Neo)Vim

voldikss
Vim Script10513 forksMITupdated 10 months ago
git clone https://github.com/voldikss/vim-browser-search.gitvoldikss/vim-browser-search

vim-browser-search

This plugin helps perform a quick web search for the text selected in (Neo)Vim

Installation

Plug 'voldikss/vim-browser-search'

Keymappings

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

Use cases

  • 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

  • ...

Variables

g:browser_search_default_engine

Defaut: 'google'

g:browser_search_engines

Default: See assets/json/engines.json

Commands

:BrowserSearch [text]

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

Contribution

If you would like to add new engine supports, see assets/json/engines.json.

more like this

vim-dap

Vim/Neovim debugger plugin providing a terminal interface to the Debug Adapter Protocol

Vim Script50

vim-halo

:innocent: Visual highlight for your cursor.

Vim script50

search

search projects, people, and tags