Find the answer to your Linux question:
Results 1 to 5 of 5
Hi guys There seems to have a problem(?) when i edit a file using vim, im hoping to enable the coloring to make my life easier Below are what i ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    27

    Vim color on CentOS

    Hi guys

    There seems to have a problem(?) when i edit a file using vim, im hoping to enable the coloring to make my life easier Below are what i typed

    #vi /root/.bashrc

    after i got into the file i typed

    :syntax color on

    but no color changed.. any idea how to make it work? i wan to make whose comments with # infront with different kind of color to make life easier.. haha

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    Linux.ie :: vi Tutorial 3 tells how to turn on syntax highlighting, if that is the problem.
    Operating System: GNU Emacs

  3. #3
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    161
    try ":syntax on" (without "color")

    you might want to put this in your .vimrc file in your home directory
    to make this the default behavior of your vim. if there is no .vimrc
    just create one. and it's just "syntax on" on the file, no colon.

    kai

  4. #4
    Just Joined!
    Join Date
    Feb 2008
    Posts
    27
    sorry for the long reply, went for new year holiday.. haha

    appreciated the help.. and happy chinese new year ^^

    P.S my frenz recommended me nano.. guess thats what i gonna try next.. hope its good

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Vim takes some getting used to, but once you do it's a great text editor. You'll find Nano to be much more new user friendly. If you should decide to try vim again in the future, just enter vimtutor in a terminal for a quick tutorial that'll get you up and running in a hurry.

    Have fun with Linux and with nano!
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...