how to use nano instead of vi

Shell
export EDITOR=/bin/nanoexport EDITOR=/usr/bin/nano
Source

Also in Shell: