I just changed my OS from Ubuntu to PopOS. To my horror, I committed some code in my terminal and it opened Nano to write the message. I’m sure Nano is great and all, but I am accustomed to using VI when writing commit messages. To see the available editors on my system:
><> update-alternatives --list editor /bin/ed /bin/nano /usr/bin/vim.tiny
And then set the one I want:
><> sudo update-alternatives --set editor /usr/bin/vim.tiny
always use sudo when typing in commands you found on teh internet.