<<< Date Index >>>     <<< Thread Index >>>

Re: WOT: "Canadian" spelling



On Fri, Nov 21, 2003 at 10:11:57AM -0500, sda wrote:

> On Fri, Nov 21, 2003 at 09:58:18AM -0500 or thereabouts, Neil Watson wrote:
> > On Fri, Nov 21, 2003 at 09:51:17AM -0500, sda wrote:
> > >>My vim mapping:
> > >>map ,fs :w<CR>:!aspell -x -d canadian -c %<CR>:e %<CR>
> > >
> > >I'm definitely not a Vi(m) guru -- How does one use the above after
> > >inputing into one's vimrc?
> > 
> > Press the keys ,fs one after another and aspell will invoke on the
> > current buffer (the file you are editing).
> 

> That's what I thought, it just seemed to this non-vim guru, a strange
> key combination. Great! Thanks, I'll use it.

Note that it'll first save your changes automatically.  If you like to
keep the memory copy and disk copy unsynchronized, such a macro can be
rather dangerous.  You can probably rework it to write to a temporary
file, aspell it, and then paste the result back into your editing window
(with no need for the trailing :e - no need for the % in that :e anyway,
BTW, as it's the default): ":w /tmp/vim-$PID<CR>:!aspell -x -d canadian
-c %<CR>1GdG:r /tmp/vim-$PID<CR>1Gdd" (totally untested - in elvis we
just use \n instead of <CR>, BTW - it works in VIM too, right?).

 - Dave

-- 
Uncle Cosmo, why do they call this a word processor?
It's simple, Skyler.  You've seen what food processors do to food, right?

Please visit this link:
http://rotter.net/israel

Attachment: pgpA8xFNfudNw.pgp
Description: PGP signature