rhubarb wrote:
> Chip,
>
> thanks for your helpful diagnostic tips.
>
> I'll note :echo g:colors_name and :echo &ft  -- I feel like I've
> scoured the interweb looking for the first command : )
>
> I was getting a "plaintex" filetype for *.tex files.
>
> However, what I've done (and will quite probably regret) is to edit ../
> share/vim/vim72/filetype.vim:
>   

The problem: next time you do an upgrade to vim, you'll lose your changes.

The solution: create a file  ($HOME/.vim/filetype.vim) and have in it
if exists("did_load_myfiletypes")
 finish
endif
let did_load_myfiletypes= 1

augroup filetypedetect
 au BufNewFile,BufReadPost *.tex setf tex
augroup END

This is your personal file, and it will override the 
share/vim/vim72/filetype.vim file.
The advantage is that this file will not be touched during any upgrade(s).

Rule-Of-Thumb: never modify any vim system files.  Override them as you 
wish,
but don't touch them.  Penalty for ignoring this ROT: loss of changes on 
upgrade,
or resign yourself to staying with an out-of-date vim.

Regards,
Chip Campbell

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to