#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2011
    Posts
    111
    Rep Power
    4

    Help on vi - how specific indent and show php syntax color?


    Hi. Anyone know how can I specific the vi editor the format of indent?

    Instead of tab how can I make 4 spaces for indent?

    Then also anyone know how to make the vi to display syntax color on php code?

    Thank you.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,453
    Rep Power
    4539
    Check the vim site and google, there are many downloadable .vimrc files for formatting specific programming languages.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo