Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voldikss/vim-browser-search
:cyclone: Perform a quick web search for the text selected in (Neo)Vim
https://github.com/voldikss/vim-browser-search
vim-plugin vim-search
Last synced: about 2 months ago
JSON representation
:cyclone: Perform a quick web search for the text selected in (Neo)Vim
- Host: GitHub
- URL: https://github.com/voldikss/vim-browser-search
- Owner: voldikss
- License: mit
- Created: 2018-08-22T13:18:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-27T16:37:50.000Z (over 1 year ago)
- Last Synced: 2024-10-12T22:50:19.972Z (3 months ago)
- Topics: vim-plugin, vim-search
- Language: Vim Script
- Homepage:
- Size: 60.5 KB
- Stars: 98
- Watchers: 4
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-browser-search
This plugin helps perform a quick web search for the text selected in (Neo)Vim
![](https://user-images.githubusercontent.com/20282795/100518567-4f189580-31cd-11eb-91f1-4d9e70f5aa0a.png)
## Installation
```vim
Plug 'voldikss/vim-browser-search'
```## Keymappings
This plugin doesn't supply any default mappings. Here are some recommended key mappings
```vim
nmap s SearchNormal
vmap s SearchVisual
```## Use cases
- Select text and type `s` to do a web search
- Type `saw` in to search web for a word
- Type `sa(` to search web for the text wrapped in the bracket
- Type `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](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](assets/json/engines.json).