This is a utility for vim users who work with Searchfox. This plugin lets you quickly search on Searchfox for the file currently in your active buffer.
You should override these variables in your .vimrc
:
let g:searchfox_directory = '/Users/you/dev/mozilla-central/'
This should be the top-level directory where your source code lives. This should end in a trailing slash.
let g:searchfox_url = 'https://searchfox.org/mozilla-central/'
This is the repository you want to search against on Searchfox.
:SearchfoxFile
- Open the Searchfox source for the current file.
:SearchfoxFileLines
- For use in visual mode. Open the Searchfox source for the current file, with your highlighted lines also highlighted in Searchfox.
:SearchfoxSearchText
- For use in visual mode. Uses your selected text as a search query.
git clone
this repo into ~/.vim/pack
Plug 'cmkm/vim-searchfox'
PluginInstall 'cmkm/vim-searchfox'