Setting your preferred editor
Linux and in fact all Unix-like systems allow you to set your preferred editor via the EDITOR environment variable. Most command-line software, like git on commit or visudo opening an editor will use this variable to know the editor to open. You can set this to a path to any editor you like, even graphical ones so long as you close them after saving the edit so the program knows to continue.