Thanks for the toggle tips. Those are quite useful.

Upon further usage of spell, I noticed that for *.sh and *.html files
I do, sometimes, get misspelled highlighting, but it seems context
specific. Namely, for *.sh, spelling is checked in comments or in
quotes, when not a variable name, etc.; basic commands and paths are
not spell checked. I can understand, fundamentally, how this is
useful, but what if I wanted to change this feature. Where would I do
that? This context-specificity is also true, it seems, in *.html
files.

Thanks for the help!

:) Michael

On May 14, 10:05 am, Charles Campbell <[email protected]>
wrote:
> Michael Repucci wrote:
> > Hi Vimmers,
>
> > I'm relatively new to Vim, and having some trouble with thespell
> > check. I setspellchecking on in my ~/.vimrc with the line "setspell
> > spelllang=en_us" (without quotes). This works fabulously for certain
> > files (e.g., *, *.c, *.m), but not for others (e.g., *.sh, *.html).
> > I'm a bit baffled, because I didn't think Vim would choose to apply
> > thespellchecking to files based on file extension, and I can't seem
> > to find anything about this in the help. Does anyone know what's going
> > on?
>
> The syntax highlighting file for sh/ksh/bash already sets comments up
> forspellchecking.  So here are a few questions that might help with
> finding out what your problem is:
>
> * are you getting syntax highlighting with *.sh files?
>
> * when editing a *.sh file, what does  :echo  &spell  &spelllang  show?
> It should show something like:  1 en
>
> * if, in spite of your .vimrc setting, &spell is coming up with a 0 (ie.
> off): find out what switched it off by typing  (include the question marks)
>
>    :verbose setspell?
>    :verbose set spelllang?
>
> * doesspellchecking occur when you     :setspellspelllang=en_us  
> manually while editing a *.sh file?
>
> Regards,
> Chip Campbell
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to