Unable to change the default editor in terminal

后端 未结 9 1691
南笙
南笙 2020-12-09 07:55

My default editor is pico at my server. I use Bash and Linux.

I tried to change Vim to be my default editor unsuccessfully by

echo vim > $EDITOR
         


        
9条回答
  •  南笙
    南笙 (楼主)
    2020-12-09 07:58

    Check this command:

    sudo update-alternatives --config editor
    

提交回复
热议问题