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

Mer: VI Band Ispell



Sie schrieben:
> How cn i use Ispell in VI? I'm using VI as my editor for Mutt and want to be able to
> check my spelling. I'm a VI newbie so any help is greatly appreciated ;-)
                           ^^ nvi/elvis or, of course, *vim*   
I recommend using aspell instead of ispell (replace suggestions are a bit less
stupid [though often amusing] and there is an email mode).

In vim you would invoke aspell with:

:!aspell --mode=email --lang=(german -in my case) check %

After your aspell-session you have to reload the file with 
:e!  to reflect the changes

To avoid you the pain of typing, map this function in your .vimrc file:

mine: 
[...]
map ,M :w!^M:!aspell --mode=email --lang=german check %^M:e!

map the keys, write out the file, invoke (!) external program "aspell" in
email mode using the German dictionary checking the current file (%); reload
the file changed by aspell in the editor ...

Hope I wasn't stating the obvious and well-known...

MH

> TIA
> -- 
> Jack Morgan			Debain GNU/Linux
> Email:				j-morgan@gol.com
> Web-site:			www.mandinka.org
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 

-- 
(Dr.) Michael Hummel
mailto: mh@seitung.net
		molino@gmx.net
--
fprint = F24D EAC6 E3D7 372C 9122 D510 EB24 01CA 0B56 B518
key: http://www.seitung.net/key

Attachment: pgp2Di6IAPKPt.pgp
Description: PGP signature


Reply to: