LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can I change the default editor (vipw, crontab -e) or pager? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-change-the-default-editor-vipw-crontab-e-or-pager-166325/)

Xavius 04-05-2004 01:59 AM

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

slakmagik 04-05-2004 01:45 PM

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.


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