Skip to content

Instantly share code, notes, and snippets.

@voidman
Created February 9, 2013 10:19
Show Gist options
  • Save voidman/4744776 to your computer and use it in GitHub Desktop.
Save voidman/4744776 to your computer and use it in GitHub Desktop.
修改 Debian 默认编辑器
输入命令:
pi@raspberrypi ~ $ update-alternatives --config editor
有 4 个候选项可用于替换 editor (提供 /usr/bin/editor)。
选择 路径 优先级 状态
------------------------------------------------------------
* 0 /bin/nano 40 自动模式
1 /bin/ed -100 手动模式
2 /bin/nano 40 手动模式
3 /usr/bin/vim.basic 30 手动模式
4 /usr/bin/vim.tiny 10 手动模式
然后选择希望的编辑器
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment