Home

Awesome

vim-codespell

A vim plugin for checking the spelling for source code. The main difference from the built-in spell checker is that it handles CamelCase, snake_case better, and you can add custom words to it.

Installation

Commands

:autocmd BufWritePre *.py :Codespell

Testing

Generating Dictionaries

You can add custom words to the dictionary.

aspell --lang=en create master ./cs.dict < cs.list

A dictionary file cs.dict will be generated in the current dir. The plugin will pick it up using the default filename.

cat file_to_be_checked.txt | aspell -l en -d cs.dict --dict-dir=./ --list

The --dict-dir must be specified otherwise aspell will check the default location.

Tips

References