vim has a grammar check plugin
How to install vim-grammarous?
it uses new vim 8+ plugin mechanism, so we can easily install it by:
mkdir -p ~/.vim/pack/bundle/start
git clone https://github.com/rhysd/vim-grammarous
The first time you run the: GrammarousCheck in the vim, it will auto download the languagetool (java jar) etc.
How to use it
It will spawn a background java process ( using languagetool) to check grammar ( maybe slow)
It will highlight the error in the main window, and show details in the info windows.
use Ctrl+w + up/down key to switch between main/info windows, inside infor window you can use the following key
|Quit the info window
|Move to the location of the error
|Fix the error automatically
|Remove the error without fix
|Disable the grammar rule in the checked buffer
|Move to the next error’s location
|Move to the previous error’s location
|Show help of the mapping in info window