Set nano as a default editor over Vim

4

1

Every time I login to ssh terminal to edit files I execute the command

export EDITOR=nano

How Could I set nano as default editor so I shouldn't execute this command anymore

iLinux85

Posted 2015-01-15T05:28:07.850

Reputation: 135

Question was closed 2015-01-26T11:36:16.113

Has been answered dozens of times: https://www.google.com/search?q=export+editor+default

– user1686 – 2015-01-15T05:37:04.643

Answers

7

  1. Remove the spaces around the =; that syntax is invalid.
  2. Put the line into ~/.bashrc (assuming you use the Bash shell).

Ingo Karkat

Posted 2015-01-15T05:28:07.850

Reputation: 19 513