$ls -l /usr/bin/editor
lrwxrwxrwx 1 root root 24 2007-04-22 03:55
/usr/bin/editor -> /etc/alternatives/editor
$ls -l /etc/alternatives/editor
lrwxrwxrwx 1 root root 9 2007-04-21 20:27
/etc/alternatives/editor -> /bin/nano
個人不習慣nano編輯器...且預設debian收錄的
vim也用不習慣..
$ls -l /etc/alternatives/vim
lrwxrwxrwx 1 root root 18 2007-04-21 20:27
/etc/alternatives/vim -> /usr/bin/vim.tiny
所以一並改掉了..
$sudo aptitude remove vim-tiny
$sudo aptitude install vim
$sudo rm /usr/bin/editor
$sudo rm /etc/alternatives/editor
$ln -s /usr/bin/vim.basic /etc/alternatives/editor
$ln -s /etc/alternatives/editor /usr/bin/editor
這樣子預設編輯器就成了vim了~~
或是直接指令改變
$sudo update-alternatives --config editor
個人心情和 Linux / FreeBSD 等技術
沒有留言:
張貼留言