I want to setup micro as the default editor in Midnight Commander (I was using the default nano). I've installed micro as a snap.
I deleted the file .selected_editor in my home user folder so now it gives me a list of editors each time that I press F4, but micro does not appear in this list.
Select an editor. To change later, run 'select-editor'.
1. /bin/nano <---- easiest
2. /usr/bin/vim.basic
3. /usr/bin/mcedit
4. /usr/bin/vim.tiny
5. /usr/bin/code
6. /bin/ed
Choose 1-6 [1]:
What can I do to make micro my default editor?
I'm using Ubuntu MATE 18.04 LTS, my terminal is Terminator and my Micro version is 2.0.6.
.selected_editorto put the binary of your editor in it manually? – Sebastian Aug 14 '20 at 09:22SELECTED EDITOR="/var/lib/snapd/snaps/micro_2596.snap"in the file; but it gives me an error/usr/bin/sensible-editor: 25: /usr/bin/sensible-editor: /var/lib/snapd/snaps/micro_2596.snap: Permission denied. Then sets the default editor back to nano. – Xavizard Knight Aug 14 '20 at 11:25microcommand in the path of the editor. Thank you for your help! – Xavizard Knight Aug 15 '20 at 18:55