Added custom editor selection

Script now considers $EDITOR environment variable first, before choosing vi/vim