On Jun 11, 2011, at 12:47 PM, Tim Gray wrote: > Correct me if I'm wring but 'txt' isn't a Vim filetype.
Thanks, Tim. I am Vim-naive. I assumed "filetype" was simply "extent," and that getting an extent recognized was simply a matter of using it. I see from checking help that it's a bit more complicated than that. > 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 As I understand it, I could create a "txt" filetype. While I'm not clear at this point how to do that, would there be any reason to prefer one method over the other, i.e., your suggestion or creating a new filetype? ------------------------------------------------------------------------------------------ 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
