3

I'm writing a paper on logic where I mention the rule modus ponens often.

Neither modus nor ponens are words in English, and the ideal spell checker should mark them as incorrect. However, modus ponens is a correct word, and should be marked correctly.

Is it possible to do something like this with the Vim spellchecker?

4

In normal mode, zg adds the word under cursor as a good word to 'spellfile'. In visual mode, the selected text is added. So selecting the word modus ponens and pressing zg will work.

Also, modus is recognized as a good word in Vim. Use zw to mark it as wrong.

You may need to put this line of code in your .vimrc to specify the path to 'spellfile':

set spellfile=$HOME/.vim/spell/en.utf-8.add
| improve this answer | |
  • 1
    > Also, modus is recognized as a good word in Vim. Not in Spanish Vim! Thanks for the answer. It seems to work. – Martín Fixman Feb 22 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.