aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Aspell-user] Spell checking of a paragraph


From: Ivan F. Villanueva B.
Subject: Re: [Aspell-user] Spell checking of a paragraph
Date: Wed, 13 Jun 2007 15:05:27 +0200
User-agent: mutt-ng/devel-r804 (Debian)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]