Correct me if I'm wring but 'txt' isn't a Vim filetype. I'm guessing when your 
vim opens up files with the .txt extension they have no filetype. You can check 
this by running the command 'set ft?'. Instead you'll either need to turn 
spelling on for all files which I showed you how to do in a previous email or 
you need to change you common below to use the BufRead and BufNewFile triggers 
to turn on spell checking for any file with the txt extension. Something like

au BufRead,BufNewFile *.txt setlocal spell spelllang=en

On Jun 10, 2011, at 7:28 PM, Eric Weir <[email protected]> wrote:

> 
> I have the following in my .vimrc, but spell is not checking spelling in that 
> filetype.
> 
>    au FileType txt setlocal spell spelllang=en_us
> 
> This is not something I came up with on my own. I am not capable of that.
> 
> Help appreciated.
> 
> ------------------------------------------------------------------------------------------
> Eric Weir
> Decatur, GA  USA
> [email protected]
> 
> 
> 
> 
> -- 
> You received this message from the "vim_mac" 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

-- 
You received this message from the "vim_mac" 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

Reply via email to