Commits

John Guidry committed 7cd205b

Enable php syntax highlighting on ctp files for Cake

Comments (0)

Files changed (1)

     au!
     autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
   augroup END
+
+  " Syntax highlighting for cakephp templates
+  "   http://www.acloudtree.com/ubuntu-vim-cakephp-12-ctp-syntax-highlighting/
+  augroup highlight
+    au!
+    autocmd BufEnter *.ctp set syn=php
+  augroup END
+
 endif