On Monday, June 25, 2012 7:09:20 AM UTC-5, Dominique Pelle wrote:
> 
> Taken from ":help spell":
> 
> The words that are not recognized are highlighted with one of these:
> 
> SpellBad      word not recognized
> SpellCap      word not capitalised
> SpellRare     rare word
> SpellLocal    wrong spelling for selected region
> 

I see some of these so infrequently that sometimes I forget what they mean, so 
I have this in my .vimrc:

" show example of spelling highlights
command! SpellLegend noautocmd topleft new |
      \ setlocal buftype=nofile tabstop=8 |
      \ file Spell\ Legend |
      \ call clearmatches() |
      \ silent put ='           SpellBad        word not recognized' |
      \ call matchadd('SpellBad', 'SpellBad') |
      \ silent put ='           SpellCap        word not capitalized' |
      \ call matchadd('SpellCap', 'SpellCap') |
      \ silent put ='           SpellRare       rare word' |
      \ call matchadd('SpellRare', 'SpellRare') |
      \ silent put ='           SpellLocal      wrong spelling for selected 
region' |
      \ call matchadd('SpellLocal', 'SpellLocal') |
      \ 1d | resize 4 |
      \ setlocal winfixheight |
      \ noautocmd wincmd p

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