On Tue, Jun 12, 2007 11:06:54AM +0200, Sandro Bosio wrote: > Hello, > > I am currently searching for info on how to make a spell check from vim of a > paragraph only. > > Imagine to have a large file, which you already spell-checked. Then you make > some changes at the > end, and you want to spellcheck it again. If it is a latex file, with > formulas, etc... and you will Put his line in your .vimrc
vnoremap ,engt :w! /tmp/t<CR>:!aspell -t --lang=en --encoding="utf-8" check /tmp/t<CR><Esc>`>a<CR><Esc>`<i<CR><Esc>!!cat /tmp/t<CR>kJJ Open a latex file, select something in vim (with v, S-V or C-V), and then without leaving the selection mode type fast ,engt This will save the selected content in the file /tmp/t, will run aspell on it, and will replace the result on your file. -- Iván F. Villanueva B. A.I. Open Source project: -- www.artificialidea.com FFII.org Deutschland -- de.ffii.org FFII.org España -- es.ffii.org _______________________________________________ Aspell-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/aspell-user
