Set Nano as a Default Editor over Vim [Duplicate]

Set Nano as a Default Editor over Vim [Duplicate]

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

1

1 Answer

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

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.