如何指定编辑器打开crontab文件? "export EDITOR = vi";不起作用 [英] How to specify a editor to open crontab file? "export EDITOR=vi" does not work
本文介绍了如何指定编辑器打开crontab文件? "export EDITOR = vi";不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Red Hat Enterprise Linux 5,并且想要设置vim编辑器来编辑crontab文件.
I'm using Red Hat Enterprise Linux 5, and I want to set the vim editor to edit the crontab file.
如果我运行echo $EDITOR
,我会得到vim.但是当我运行crontab -e
时,我得到了不同的编辑器.
If I run echo $EDITOR
, I get vim. But when I run crontab -e
, I get different editor.
推荐答案
很有可能您的VISUAL
环境变量设置为其他变量.试试:
Very probable that your VISUAL
environment variable is set to something else. Try:
export VISUAL=vi
这篇关于如何指定编辑器打开crontab文件? "export EDITOR = vi";不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文