Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to spell check in vim?

0 views
Skip to first unread message

epash...@sprint.ca

unread,
Dec 27, 2002, 11:49:41 AM12/27/02
to
hello;
sorry to ask such primitive question.
i have been doing spell check after writing the buffer to a file by shell
executing of the ispell. i am woundering if there is a way to spell check
the buffer i am working before saving it. i have gone through the help file
tutorial but no mention of spell check in vim.
apriciate any pointer to where i could find about this and some other
commands. as you could tell i am new to vim. so go easy on me.

thank in advance for any reply.

epashpouri


dhig...@highley-recommended.com

unread,
Dec 27, 2002, 4:59:23 PM12/27/02
to

Check here:
http://www.highley-recommended.com/text-processing.html

> thank in advance for any reply.

> epashpouri

--


Regards,

David Highley Phone: (206) 669-0081
Highley Recommended, Inc. FAX: (253) 838-8509
2927 SW 339th Street Email: dhig...@highley-recommended.com
Federal Way, WA 98023-7732 WEB: http://www.highley-recommended.com

Bob Harris

unread,
Dec 27, 2002, 5:03:14 PM12/27/02
to
In article <Fw%O9.3401$3X5....@newscontent-01.sprint.ca>,
epash...@sprint.ca wrote:

X hello;
X sorry to ask such primitive question.
X i have been doing spell check after writing the buffer to a file by shell
X executing of the ispell. i am woundering if there is a way to spell check
X the buffer i am working before saving it. i have gone through the help file
X tutorial but no mention of spell check in vim.
X apriciate any pointer to where i could find about this and some other
X commands. as you could tell i am new to vim. so go easy on me.
X
X thank in advance for any reply.
X
X epashpouri

I'm sure I saw better ways to do spell checking than what I'm about to
suggest, I just can not remember them :-) You might want to look at
<http://www.vim.org> where there might be some suggestions. Anyway,
here is how I do spell checking usng ispell

map S :w<C-M>:!ispell %<C-M>:e!<C-M><C-M>

I do not use the normal S command, remapping it to my spell checker is
not a problem for me. If you prefer some other mapping, then by all
means us something else.

I use this because it is very similar to something I had in my vi .exrc
file, and I got this from one of the vi related web sites.

map S :w^V^M:!ispell % ^V^M:e!^V^M^V^M

Bob Harris

Bob Harris

esm...@omega.local.net

unread,
Dec 28, 2002, 11:09:18 PM12/28/02
to
>
> Check here:
> http://www.highley-recommended.com/text-processing.html
>
>
Thank again for all responses.
The link is a very good one.

epashpouri

Rolf Buenning

unread,
Dec 30, 2002, 3:43:16 AM12/30/02
to
asdflkjh <as...@lkjh.com.net.org>
> Sonething I picked up years ago.

Me too for the highlighted region...

vmap ,i :w! spell.tmp<cr>gvod<up>:!ispell -x -d ngerman -T latin1
\ spell.tmp<cr><cr>:r spell.tmp<cr>:!rm spell.tmp<cr><cr> i

Gruß Rolf
--
Jein oder nicht jein - sonst noch Fragen?

Charles E. Campbell

unread,
Dec 30, 2002, 11:43:06 AM12/30/02
to
In article <Fw%O9.3401$3X5....@newscontent-01.sprint.ca>,
<epash...@sprint.ca> wrote:
>i am woundering if there is a way to spell check
>the buffer i am working before saving it.
---------------------------------------------------------------------

Check out

http://vim.sourceforge.net/scripts/script.php?script_id=195

for <engspchk.vim> which does spell-checking via vim's own
syntax highlighting.

Regards,
Chip Campbell
--
Charles E Campbell, Jr, PhD _ __ __
Goddard Space Flight Center / /_/\_\_/ /
c...@NgrOyphSon.gPsfAc.nMasa.gov /_/ \/_//_/
PGP public key: http://www.erols.com/astronaut/pgp.html

0 new messages