vim syntax

Discussion in 'Mac Apps and Mac App Store' started by sebastijan, Aug 19, 2005.

  1. sebastijan macrumors member

    Joined:
    May 22, 2005
    Location:
    London, UK
    #1
    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)
     
  2. WebMongol macrumors member

    Joined:
    Sep 19, 2004
    Location:
    Bay Area, CA
    #2
    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
     

Share This Page