Customization tips for the VI editor in OpenBSD
Enabling spell checking with aspell
In the ~/.exrc file add the following lines:
map v :w^M:!aspell --lang en -e -c %^M:e^M^M
map V :w^M:!aspell --lang de -e -c %^M:e^M^M
This will map the "v" key to the English spell checker and the "V" key
to the German spell checker. Neither keys are used by vi. Obviously
you need to have aspell installed. Just use pkg_add.
Note that the ^M are entered via the key combination <ctrl>+v
followed by the <enter> key. If you just type ^M things will not
work.
|