How to make _vimrc turn spell checker on for .txt files?

Here is the pseudo code:


if filename ends in ".txt"
    setlocal spell on
else
    setlocal spell off
endif

Thank you,
wolfv

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