After consulting with the IRC room, and reading the help files in vim on filetypes, I've tried everything I can think of and find. My work uses .page file extensions for php files. They are syntax highlighted when I open them, thankfully because of one of the lines below, in my .vimrc file.
My problem is, when I press "CTRL+w", "n" for a new pane, then ":e other_file.page" to bring up a second file in the same window, it isn't syntax highlighted. I always have to type ":filetype=php" to get it colored right. It is a big pain in the butt. Can anyone help? source /usr/share/vim/vim71/syntax/php.vim syntax on filetype detect if did_filetype() " filetype already set.. finish " ..don't do these checks endif if getline(1) =~? '^\<\?php' set filetype=php endif syn on -- View this message in context: http://old.nabble.com/HELP%3A-Special-file-extentions-in-split-pane.-tp27502103p27502103.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
