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 |
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. |