On Tuesday, July 31, 2012 1:04:21 PM UTC-5, Ingo Karkat wrote:
> On 31-Jul-2012 18:56:21 +0200, Ben Fritz wrote:
> 
> 
> 
> > On Tuesday, July 31, 2012 3:52:06 AM UTC-5, James  Cole wrote:
> 
> >> [...] I know it'd be possible to write a map to do this, but it seems
> 
> >> like it'd be a sensible default behavior for z=
> 
> >>
> 
> >> [4 lines deleted]
> 
> > 
> 
> > How about:
> 
> > 
> 
> > nnoremap z= :<C-U>set spell<CR>z=
> 
> > 
> 
> > And probably another mapping to turn off spell check if you want it.
> 
> > 
> 
> > Alternatively, you could just change the highlight to be less
> 
> > distracting, using :hi rules on SpellBad, SpellCap, SpellRare, and
> 
> > SpellLocal.
> 
> 
> 
> Have you read his actual email? James explicitly referred to the shortcomings 
> of
> 
> such a mapping. I second James' request, especially because I have written 
> such
> 
> a mapping for myself, and it isn't trivial (have to handle empty 'spelllang' 
> and
> 
> other settings that prevent spell checking, turning off 'spell' again after 
> the
> 
> user interaction requires an autocmd, ...)
> 
> 
> 
> -- regards, ingo

I see "I know it'd be possible to write a map to do this, but it seems like 
it'd be a sensible default behavior for z=" but don't see a discussion of the 
shortcomings.

However, I can agree that it would be a useful feature to not require such a 
mapping.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui