On 2006-05-25, Ramashish Baranwal <[EMAIL PROTECTED]> wrote: > Hi, > > Apologies if this has been answered before (I couldn't find anywhere). > How can I associate a file extension to a file type in my .vimrc file > (e.g. .hpp extension to c++/cpp file)?
The preferred method is to do this in your ~/.vim/filetype.vim. See
:help new-filetype
section C.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
| Spokane, Washington, USA
