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 -- 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
