Michael Repucci wrote: > Hi Vimmers, > > I'm relatively new to Vim, and having some trouble with the spell > check. I set spell checking on in my ~/.vimrc with the line "set spell > 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 > the spell checking 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 for spell checking. 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 set spell? :verbose set spelllang? * does spell checking occur when you :set spell spelllang=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 -~----------~----~----~----~------~----~------~--~---
