Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I do have a demand from the users, ones who access the server thru telnet, to change the text colors of sh scripts when opened in vim editor so that they can see it more clearly................like the comments appear in blue color which is difficult to see with the background being black. so I want to change the font colors as well as the background color.
You'll need vim syntax highlighting files - which can be locally installed into the user's home-dir into .vim/syntax/ if necessary.
If overall syntax highlighting is actually working, your user just have to enable it possibly (ESC:syn on) or put an sh.vim into the user's .vim/syntax dir as vim already supports shell scripting in color.
Let me mention that I didn't find any .vimrc file in the users home directory. There's only one file that I found in the /etc directory is vimrc file. And the colors directory is in the path: /usr/share/vim/vim63/colors
And in the users home directory there are following files related to vim:
I also tried the following way but no effect till yet.
1. I downloaded freya.vim and put it in the path: /usr/share/vim/vim70/colors
2. And then opened the file /etc/vimrc and added the following:
but no effect till yet........
Please let me know where to add the colorscheme.....and bring the desired effect.
- You've downloaded a colorscheme called 'freya' so, if you wanted that colorscheme, you need to add:
- If the .vimrc doesn't exist in a user directory, you can create it and add whatever customization you want, although is not necessary since /etc/vimrc will be used as wide-system configuration file, although sometimes the file used as wide-system configuration is at /usr/share/vim/vimX/vimrc where X is vim's version.
- If you download any colorscheme, you need to put it in your current/active color path, as you said, your color path is:
So, any color scheme goes in that directory, not in vim70 unless you're actually using version 7.0 of vim.
Move the freya.vim to /usr/share/vim/vim63/colors and add the line:
If still doesn't work, you can create the .vimrc in the user directory with the same line, just remember to check the ownership of the new .vimrc created (if it's not created by the user himself)