Re: Spell checking of a paragraph

"Ivan F. Villanueva B." <[email protected]>
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <20070613130527.GE13058@golem>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.