Changed the way EDITOR is set and set TERM to xterm-256color