sponsor Vim development Vim logo Vim Book Ad

Grammalecte : Vim plugin for the Grammalecte French grammar checker

 script karma  Rating 9/3, Downloaded by 1506  Comments, bugs, improvements  Vim wiki

created by
Dominique Pellé
script type
This plugin integrates Grammalecte into Vim. Grammalecte is an Open Source
style and grammar checker for French.

See http://www.dicollecte.org/grammalecte for more details about Grammalecte.

If you don't have time to read help files, this screenshot will give you
an idea of what the Grammalecte plugin does:


The Grammalecte plugin defines 2 commands :GrammalecteCheck and


Use the :GrammalecteCheck command to check the grammar in the current
buffer. This will highlight errors in the buffer. It will also open a new
scratch window with the list of grammar mistakes with further explanations
for each error. It also populates the location-list for the window.

The :GrammalecteCheck command accepts a range. You can for example check
grammar between lines 100 and 200 in buffer with :100,200GrammalecteCheck,
check grammar in the visual selection with :<',>'GrammalecteCheck, etc.
The default range is 1,$ (whole buffer).


Use the :GrammalecteClear command to clear highlighting of grammar
mistakes, close the scratch window containing the list of errors, clear
and close the location-list.
install details
Unzip file Grammalecte.zip plugin from in your personal |vimfiles| directory
(~/.vim under Unix or %HOMEPATH%\vimfiles under Windows):

  $ mkdir ~/.vim
  $ cd ~/.vim
  $ unzip /path-to/Grammalecte.zip
  $ vim -c 'helptags ~/.vim/doc'

The zip file contains the following files: >


You have to enable plugins by adding these two lines in your |.vimrc| file: >

  set nocompatible
  filetype plugin on

Alternatively, if you prefer to use Vundle or Pathogen plugin managers,
the plugin is available on github at:


For example, using Vundle, you can install the plugin by adding
this line in you ~/.vimrc:

  Plugin 'dpelle/vim-Grammalecte'

To use this plugin, you also need to install the Python Grammalecte grammar checker.  Download and unzip the file Grammalecte-fr-v0.5.*.oxt available at  http://www.dicollecte.org/grammalecte/telecharger.php

You then need to specify in your ~/.vimrc the location of Grammalecte using something like:

let g:grammalecte_cli_py='~/Downloads/Grammalecte-fr-v0.5.14/pythonpath/cli.py'

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
Grammalecte.zip 0.2 2017-01-11 8.0 Dominique Pellé - Avoid using lambda, so that plugin works on older Vim versions.
- Updated documentation, to explain how to customize colors
Grammalecte.zip 1.0 2016-12-13 8.0 Dominique Pellé Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.