[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    Re: [Aspell-user] Spell checking of a paragraph
From:       "Ivan F. Villanueva B." <aspell () artificialidea ! com>
Date:       2007-06-13 13:05:27
Message-ID: 20070613130527.GE13058 () golem
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic