LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2004, 02:59 AM   #1
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Rep: Reputation: 15
how can I change the default editor (vipw, crontab -e) or pager?


when I launch, for example, vipw or crontab -e the system launch the default editor as VI, how can I change it?

when I check the man pages, the system uses the default pager, less, how can I change it?

thanks thanks thanks
 
Old 04-05-2004, 02:45 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Usually (in bash)
export EDITOR="vim" (or whatever)
will do but crontab didn't seem happy. So
export VISUAL="vim" (or whatever)
got it.

The pager and the editor are different things. But you can change that, too - just export your PAGER as 'more' or whatever.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing default editor zyphonic Linux - General 8 11-14-2005 08:35 AM
how to change default SUDO editor??? orgee Linux - Software 3 10-12-2004 08:39 PM
howto change the editor of crontab maxut Fedora 4 08-28-2004 05:03 AM
jEDIT as default editor on a PC saurya_s General 1 03-17-2004 05:00 PM
crontab editor changes slack66 Linux - General 1 08-04-2003 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration