FUN WITH LINUX

Spell checking with vim

10 February 2017

Spell checking in vim is very easy and just needs the following command:

:set spell spelllang=en_us

This will highlight all misspelled words. To turn off the spell checker just type in command-mode:

:set nospell

For german language we need a few files:

mkdir -p $HOME/.vim/spell
wget -P ~/.vim/spell/ http://ftp.vim.org/vim/runtime/spell/de.utf-8.spl
wget -P ~/.vim/spell/ http://ftp.vim.org/vim/runtime/spell/de.utf-8.sug

Now we can use the following vim-command to enable the german spell checker:

:set spell spelllang=de
[ vim  Tricks  ]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 Unported License.

Copyright 2015-present Hoti