Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, Niraj here. after upgrading to Jaunty version(9.04), if I am opening any shell script file, all lines are of same color. I also checked in /home/<user>/.vimrc file , ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Location
    Bangalore,India
    Posts
    10

    Question VI editor problem- color scheme

    Hi all,
    Niraj here. after upgrading to Jaunty version(9.04), if I am opening any shell script file,
    all lines are of same color.
    I also checked in /home/<user>/.vimrc file , and there the "syn on" option is there.
    Still same problem. Can any body help me how to change the color syntax so that it will be easier to read the lines inside any script.

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Follow these steps.
    mkdir -p .vim/colors
    cd .vim/colors
    vim .vimrc
    add these entries.
    syntax on
    colorscheme adrian
    save and quit vim. :wq

    done.

    You can get more color schemes, as per syntax Here
    Download and add these .vim text files in your .vim/colors, and you can set these schemes in vim or .vimrc
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Location
    Bangalore,India
    Posts
    10
    Hi b2b,
    I tried with the steps you gave. But still its not working.
    while opeing the link you have given, did not work through wget(showing 404 error)

    Error
    -------------------
    HTTP request sent, awaiting response... 404
    2009-05-06 23:20:58 ERROR 404: (no description).
    -----------

    So I opened the site and there I copy all and saved it in a notepad and named it as adrain.vim and did the necessary changes in the .vimrc file as instructed.
    Still not resolved. Also tried with other .vim files . Still did not work

    Better give me your .vimrc file with adrain.vim . Will check by copying both to my system.

  4. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    syntax on
    colorscheme adrian
    Thats all my .vimrc

    do you have vim installed or just vi
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  5. #5
    Just Joined!
    Join Date
    Apr 2009
    Location
    Bangalore,India
    Posts
    10
    Mine is .vim not vi... because previous version... i.e. 8.** was working fine. Only in this version I am getting this problem.

  6. #6
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    try installing vim-full
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

Posting Permissions

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