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

    Join Date
    May 2011
    Posts
    108
    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,424
    Rep Power
    4539
    Check the vim site and google, there are many downloadable .vimrc files for formatting specific programming languages.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain

IMN logo majestic logo threadwatch logo seochat tools logo