How to change default vi colorscheme without root access


 
Thread Tools Search this Thread
Operating Systems Linux SuSE How to change default vi colorscheme without root access
# 1  
Old 12-09-2011
How to change default vi colorscheme without root access

SUSE Linux Enterprise Server v11

Hi guys,

I don't have root access. So, I can't change the default colorscheme for my vim editor.
I do have an environment variable for my id that says:
EDITOR=/usr/bin/vi
export EDITOR

I tried adding /usr/share/vim/vim72/colors/desert.vim to it. Didn't help.

So, my question is as follows:
Is there a way to choose a colorscheme for my id without having root access? Just for my id, not all the users on the system.

Thanks in advance.
Dexter.
dexter126
# 2  
Old 12-09-2011
You don't need to change the global settings to change settings just for your user, the ~/.vimrc file can control settings just for you.

Try adding the line
Code:
colorscheme desert

to it. If ~/.vimrc doesn't exist already, that's okay, just create it.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 12-09-2011
Create a .vimrc file in your home directory that contains:
Code:
colorscheme desert

This User Gave Thanks to CarloM For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies

2. UNIX for Dummies Questions & Answers

How to set colorscheme for a shell while/after logging in?

I am trying to put the below in a file .vimrc and sourced the file, however when i vi any file it is not showing/reflecting color scheme i wanted, Is there any way i can make this work? we use common application account to log in and by default it is CSH and later we change the shell to KSH. I want... (3 Replies)
Discussion started by: Ariean
3 Replies

3. Ubuntu

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will... (2 Replies)
Discussion started by: 244an
2 Replies

4. SuSE

Auditors want more security with root to root access via ssh keys

I access over 100 SUSE SLES servers as root from my admin server, via ssh sessions using ssh keys, so I don't have to enter a password. My SUSE Admin server is setup in the following manner: 1) Remote root access is turned off in the sshd_config file. 2) I am the only user of this admin... (6 Replies)
Discussion started by: dvbell
6 Replies

5. Shell Programming and Scripting

How to give root access to non root user?

Currently in my system Red Hat is installed. And Many user connect to my machine via SSH Techia Terminal. I want to give some users a root level access. Can anyone please help me how to make it possible. I too searched on the Google but didn't find the correct way Regards ADI (4 Replies)
Discussion started by: adisky123
4 Replies

6. UNIX for Advanced & Expert Users

Vim colorscheme info

I wanted to point this out. It took me a long time figure out how to find what color schemes I have. How to use a vi color scheme | vi vim color scheme colorscheme | devdaily.com I recommend just using this command. Every system that I have tried has desert.vim so that is why I searched for... (0 Replies)
Discussion started by: cokedude
0 Replies

7. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

8. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

9. UNIX for Dummies Questions & Answers

Change other account password from root access

Hi, I have forgotten my personal account password but I still have the root access to the box. Please tell me how can I change my other account password by logging as root. Thanks. Rakesh :D (4 Replies)
Discussion started by: rakeshou
4 Replies

10. Linux

how to access root priveliges if root password is lost

wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies
Login or Register to Ask a Question