Re: mutt, vim och ispell?
On Sat, 19 May 2001, Andreas Schuldei wrote:
> Finns där hooks för det i mutt eller vim?
Från min .vimrc:
function Ispell(...) range
if a:0 > 1
echohl WarningMsg
echo "Too many arguments for function: Ispell"
echohl None
return 1
endif
if a:0 == 0
let language = "svenska"
else
let language = a:1
endif
let tempfile = tempname()
execute a:firstline . ',' . a:lastline . 'w!' . tempfile
execute a:firstline . ',' . a:lastline . 'd'
execute '!ispell -x -d' . language . ' ' . tempfile
execute a:firstline - 1 . 'r' . tempfile
call delete(tempfile)
endfunctin
Markera ett område visual och : Ispell
Den biten stavas i ispell, utan markering hela filen. Man kan även ge srgument
för språk och annat kul.
--
o_ Anders Arnholm, HiQ - Consultant
o/ /\ anders@arnholm.nu Phone : +46-703-160969
/|_, \\ http://www.arnholm.nu/~balp/ http://www.hiq.se
/
`
Reply to: