Thanks Christian, Matt

Bit ashamed of the way I implemented it, this is what I did:
nmap tq ma[S1z=| " mark current position - go to previous
"misspelling - correct it with the first option in the suggested list
nmap tl `a " go back to where you were
nmap l tqtl " concatenate it and map to the letter "l"

Ideally I would like the "corrected" words to stay highlighted
for the session.  If this were the case then I could better map
a global thingy that corrects all typos (this could be too
ambitious).

I like the way vim can (sometimes) make you lazy but in this case
I paid the price a few times.  With the (say) yellow
"corrections" shining brightly all over the page, this would
allow me to keep my laziness without sending weird (wrongly
corrected) words.

ciao

-- 
- Eric Smith
Matt Wozniski said:
> 
> On Tue, Nov 17, 2009 at 9:06 AM, Christian Brabandt wrote:
> >
> > On Tue, November 17, 2009 12:33 pm, Eric Smith wrote:
> >>
> >> The new spelling system for vim is great and I use a macro to
> >> automatically "correct" misspelt words.  When I am really sloppy
> >> this automatic "correction" (to the first option in the list
> >> suggestions) is incorrect.  Some embarrassing emails have ensued
> >> *blush*.
> >>
> >> I would very much like to have "corrected" words highlighted in
> >> (say) a light yellow so that I may easily check them with the
> >> eye.  Is there a way I can hack this or better still is this
> >> something useful to all of us that can be added to the
> >> application?
> >
> > If you haven't saved your file yet, :h :DiffOrig might be your best bet.
> 
> I don't think that this should be hard to do using matchadd() and
> friends.  If you include the map that you're currently using, someone
> might be able to suggest how to get it to highlight the newly
> corrected word.
> 
> ~Matt
> 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to