Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kashav/vim-searchfox

Use Searchfox (https://searchfox.org) directly from Vim.
https://github.com/kashav/vim-searchfox

firefox mozilla vim

Last synced: about 16 hours ago
JSON representation

Use Searchfox (https://searchfox.org) directly from Vim.

Awesome Lists containing this project

README

        

## vim-searchfox

vim-searchfox allows you to use [Searchfox](https://searchfox.org) directly from Vim.

### Installation

Install with your preferred installation method. I recommend [vim-plug](https://github.com/junegunn/vim-plug):

```vim
call plug#begin('~/.vim/plugged')
Plug 'kshvmdn/vim-searchfox'
call plug#end()
```

### Usage

To open the current file (at the current line), use the `SFOpen` command.

```
:SFOpen
```

To lookup a word, use the `SFSearch` command. This also works in visual mode with a selection.

```
:SFSearch
```

### Configuration

- `g:searchfox_url`

Sets the Searchfox repository URL. Defaults to [mozilla-central](https://hg.mozilla.org/mozilla-central).

```vim
let g:searchfox_url = "https://searchfox.org/mozilla-central/"
```