Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sebastijan

macrumors member
Original poster
May 22, 2005
62
2
London, UK
How to enable vim syntax for php... i have file php.vim in /syntax folder and...

:syntax enable
:syntax on

I tried also with file .vimrc and doesn't help unfortunately.

(i use Mac OS X 10.4 (xterm-color) and Vim 6.2 in /Terminal.app)
 
sebastijan said:
How to enable vim syntax for php... i have file php.vim in /syntax folder and...

:syntax enable
:syntax on

I tried also with file .vimrc and doesn't help unfortunately.

(i use Mac OS X 10.4 (xterm-color) and Vim 6.2 in /Terminal.app)

For Terminal
:syntax on
works for me.

For xterm you may need to add following snippet to your .vimrc:

"------------------------------------------------------------------------
" color for xterm:
"------------------------------------------------------------------------
if ! has("gui_running")
set t_Co=16
if has("terminfo")
set t_AB=^[[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
set t_AF=^[[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
else
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
endif

endif
syntax on
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.