加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Howto Change Default editor in Debian Etch

(2007-05-24 09:51:37)
标签:

change

default

editor

debian

linux

分类: 技术文章
By Default Debian Etch Provides the nano editor you need to follow this procedure.In this example i want to use vi editor as my default editor

Administrators who wish to change the default editor for all users will have to update the alternatives system using:

# update-alternatives --config editor

Once you enter it opens available editor options from your server you should see similar to the following screen here i have selected option4 for vi editor


http://s10.sinaimg.cn/orignal/4be4a1b4441bf632e4679


If you are an user wishing to change the default editor can define the environment variable EDITOR by introducing the following lines in their own profiles

EDITOR=vi
export EDITOR
alias editor=$EDITOR

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有