tomMoulard / vim-reverso

Reverso spell checking as a Vim plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-reverso

Apply Reverso's french and english correction

Installation

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

Usage

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).

⚠️ Reverso API is limited to 2000 char at a time.

Configuration

  • g:reverso#search_lang: ("fra" or "eng") Set the correction language
  • g:reverso#debug: (Bool, 0 or 1) Enable Debug ?

Thanks

I'd like to acknowledge @jessfraz and her openai.vim for the inspiration.

About

Reverso spell checking as a Vim plugin


Languages

Language:Vim Script 100.0%