Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 12-18-2006, 09:56 PM   #1
LQ Newbie
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
How can I set environmental variables of vi editor in ROOT user?

Hello, friends

I'm new member and I'd like to use this forum. ^^
Does anyone knows how can I set the environmental variables of vi editor on ROOT user?
I use .vimrc for setting vi editor when I logged in my account not root user.
It's fine.
Whenever I logged in root user, my settings are useless such as ':syntax on', ':set ts=4' and etc.
Could you advise me? How can I set it on Root user?

Thank you so much


Last edited by sbnice; 12-18-2006 at 09:59 PM.
Old 12-18-2006, 10:17 PM   #2
Senior Member
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
You just need to create:


And put the settings you want in there.

If you're feeling particularly brave:

ln -s /home/username/.vimrc /root/.vimrc

And root will share your file. This has security implications though, so I don't recommend it. It's better to just copy it.
Old 12-18-2006, 11:24 PM   #3
LQ Newbie
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Smile It's Great!!! It's working. Thank you so much~ frob23.

Hello, frob23.

Thank you so much. It's working.
It's great!
I like this forum too much.~

See ya~



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Environmental Variables danglingpointer Slackware 13 01-06-2005 01:36 AM
environmental variables msound Programming 0 08-21-2004 08:06 PM
environmental variables? blackzone Linux - General 1 08-06-2004 04:44 AM
how to set environmental variables chakkerz Linux - Newbie 8 07-01-2004 04:06 AM
environmental variables mbhenry Linux - General 6 09-18-2003 12:41 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration