vim php with weird extensions
Hey,
What do I need to add to the .vimrc file so that files with the extension .somethingelse are recognized as PHP files by Vim so that I get all the colour coding. Thanks, David |
Hi,
Locate vim's filetype.vim file (/usr/share/vim/vim62/filetype.vim or alike). Open it and look for the following lines " Php3 au BufNewFile,BufRead *.php,*.php3 setf php Add .somethingelse to *.php,*.php3 You should end up with something like this: " Php3 au BufNewFile,BufRead *.php,*.php3,*.somethingelse setf php That should do the trick. Hope this helps. |
Quote:
Merry Christmas! David |
All times are GMT -5. The time now is 07:17 PM. |