LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-18-2006, 08:56 PM   #1
sbnice
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.
However,
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
Sincerely,

SB

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

Rep: Reputation: 47
You just need to create:

/root/.vimrc

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, 10:24 PM   #3
sbnice
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~

SB
 
  


Reply


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 12:36 AM
environmental variables msound Programming 0 08-21-2004 07:06 PM
environmental variables? blackzone Linux - General 1 08-06-2004 03:44 AM
how to set environmental variables chakkerz Linux - Newbie 8 07-01-2004 03:06 AM
environmental variables mbhenry Linux - General 6 09-18-2003 11:41 AM


All times are GMT -5. The time now is 04:18 AM.

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