Mitch Wiedemann wrote:
I am using Vim 7.0* and I mostly edit HTML files.  I've noticed the
on-the-fly spell checking works great in regular .txt files and such,
but I can't get it working in HTML files without turning the :syntax
off.  Is there a way to get on-the-fly spellchecking with syntax
highlighting as well?


* VIM - Vi IMproved 7.0 (2006 May 7, compiled Mar 29 2007 16:33:16)
Compiled by ...
Normal version without GUI.  Features included (+) or not (-):
[...]

1. Unless you removed the "Patches included" line, the above means 7.0.000. The current version is 7.0.224. Make sure to use an up-to-date version: compile it yourself if you must, get it as a binary distro if you can. For Windows, you can use Steve Hall's distro from https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721

2. With the latest runtime files (and in particular, $VIMRUNTIME/syntax/html.vim dated 2006 Jun 19) I get spell checking in HTML text when 'spell' is set, even with syntax highlighting on. If step 1 doesn't cure your problem (and on Windows it ought to), get the latest runtime files, for instance by using the Linux commands below (3 commands, type each of them all on one line) from the vim70 directory "for building" containing src/ runtime/ and other subdirs. (This assumes you have installed the Vim source: see http://users.skynet.be/antoine.mechelynck/vim/compunix.htm for details. You may or may not want to uninstall the Debian (or other precompiled) Vim package before you compile your own.

rsync -avzcP --delete --exclude="/dos/" ftp.nluug.nl::Vim/runtime/ ./runtime/ 2>&1 |tee rsync.log

cd src

make installruntime 2>&1 |tee ../install.log



Best regards,
Tony.
--
Hurewitz's Memory Principle:
        The chance of forgetting something is directly proportional
to ..... to ........ uh ..............

Reply via email to