Hello wolfv
-- <snip> --
>> Second, create a filetype.vim in that new subfolder (I assume that you
>> don't yet have one in _that_ directory):
>>
>>         :e ~/vimfiles/filetype.vim
>> ,----[  ft=text  ]---------------------------
>>
>>   " txt
>>   autocmd BufNewFile,BufRead
>>       \ *.txt,
>>       \\c*README*
>>       \ setl ft=text
>> `---------------------------------------------
-- <snip> --
I noticed i introduced real bugs with the configuration i posted earlier as can
been seen above.
Instead of adding this to '~/vimfiles/filetype.vim' you should drop the attached
file into '~/vimfiles/after/ftdetect/'. Otherwise all '*.txt' will be forcibly
overwritten to 'ft=text' even those that are set otherwise in
'$VIMRUNTIME/filetype.vim'.
HTH
-- 
Regards,
Thilo
4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F
-- 
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
No comments:
Post a Comment