Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
fc命令调用默认编辑器怎么设置
deepin Talks
552
views ·
1
replies ·
To
floor
Go
老陌
deepin
2018-07-20 02:58
Author
本帖最后由 myccloves 于 2018-7-19 19:09 编辑
之前用fc命令,默认调用的是vi编辑器。
今天安装uefi系统,deepin重装了,刚好有一个长命令行需要用fc修改,结果调用的是nano,我刚弄明白vi怎么保存文件的,这出来了nano不习惯,怎么调过来?
问题已经解决
结帖
linux@myccloves:~$ echo "FCEDIT=vi" >> ~/.bashrc
linux@myccloves:~$ source ~/.bashrc
Copy the Code
Reply
Like 0
Favorite
View the author
All Replies
linusboyle
deepin
2018-07-20 04:02
#1
export EDITOR=vim
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
【Enhanced Repo】Better Deepin Repo is released
Popular Events
More
之前用fc命令,默认调用的是vi编辑器。
今天安装uefi系统,deepin重装了,刚好有一个长命令行需要用fc修改,结果调用的是nano,我刚弄明白vi怎么保存文件的,这出来了nano不习惯,怎么调过来?
问题已经解决结帖