Unable to change the default editor in terminal

后端 未结 9 1698
南笙
南笙 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 08:20

    if you want vi to be your default history editor (which is why I'm here)

    edit ~/.bashrc and add

    set -o vi

    anywhere in the file. Then all the lovely vi command history is available (esc k etc).

    Sorry if this is slightly off topic, but my search landed me here....

提交回复
热议问题