Apply Reverso's french and english correction
This plugin follows the standard runtime path structure. Below are some
helper lines for popular package managers (you can use git submodules
instead of git clone
):
- Vim 8 packages
git clone https://github.com/tommoulard/vim-reverso.git ~/.vim/pack/plugins/start/vim-reverso
- Pathogen
git clone https://github.com/tommoulard/vim-reverso.git ~/.vim/bundle/vim-reverso
- vim-plug
Plug 'tommoulard/vim-reverso'
- Vundle
Plugin 'tommoulard/vim-reverso'
You must have curl
and jq
installed locally
With your cursor on a line of text, or a selection of text in visual mode,
:ReversoSpell
will send the line of text or selection to the Reverso API and
correct the lines with the answer.
You can also use <leader>t
to correct the selection or line
Do not forget to unselect visually selected text when correction(i.e.
V5j<Esc><Esc>,t
).
g:reverso#search_lang
: ("fra"
or"eng"
) Set the correction languageg:reverso#debug
: (Bool, 0 or 1) Enable Debug ?
I'd like to acknowledge @jessfraz and her openai.vim for the inspiration.