Weblogs for debianuser01

Posted by debianuser01 on Wed 26 Sep 2007 at 12:46

Spellcheck within (G)VIM

in the experimental repository there's a spell-checking package for vim:
vim-spellfiles-XX/experimental where XX is the language code (e.g. de - for german, en - for english etc.)

I use following entries for it in my /etc/apt/sources.list

deb http://debian.netcologne.de/debian/ experimental main contrib
deb http://debian.netcologne.de/debian/ experimental non-free

aptitude update (update apt package list)

install the package:

aptitude install vim-spellfiles-de (for german spell checking)

in your ~/.vimrc file adjust

set spl=de spell

you possibly have to add /usr/share/vim/addons to your runtimepath because vim default addons directory has changed recently from /usr/share/vim/addons to /var/lib/vim/addons but it wasn't properly adjusted in the vim-spellfile-de package:

set runtimepath=~/.vim,/var/lib/vim/addons,
 /usr/share/vim/vimfiles,
 /usr/share/vim/vim71,
 /usr/share/vim/vimfiles/after,
 /var/lib/vim/addons/after,
 ~/.vim/after,
 /usr/share/vim/addons

So, from now on you should be able to have nice spell checking in gvim.