Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 8186  / 1 Year ago, mon, april 10, 2023, 5:20:55

New eoan installation, just installed git and vim and recovered one of my projects from backup. Configured git user.email and user.name, made a couple of small changes, tried commit and... nano started. It took me some time to understand how to exit it without committing (BTW I use vim). Neither VISUAL nor EDITOR are set, and the git guide says




By default, Git uses whatever you’ve set as your default text editor via one of the shell environment variables VISUAL or EDITOR, or else falls back to the vi editor to create and edit your commit and tag messages.




(https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration).



Well, I set EDITOR=vi in my profile, but I'd like to understand what's going on here. Any idea?


More From » vim

 Answers
5

My wild guess you have set nano as a default system editor, but you can try to update it with



    sudo update-alternatives --config editor

[#4134] Monday, April 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
curatekill

Total Points: 376
Total Questions: 117
Total Answers: 102

Location: Wales
Member since Mon, May 17, 2021
3 Years ago
;