BTW, Nano also has syntax highlighting, itās just disabled by default. Add this to your .nanorc
include /usr/share/nano/*.nanorc
BTW, Nano also has syntax highlighting, itās just disabled by default. Add this to your .nanorc
include /usr/share/nano/*.nanorc
Hah! Didnāt know that!
TIL
When I tried it, the syntax highlighting was pretty minimal compared to micro (and less adaptable to unusual languages). Micro also has some simpler keybindings (CTRLs to save, CTRLq to quit, CTRLx to cut, CTRLc to copy, CTRLv to paste )
which saves the thought process for better things!
You can change the keybindings in nano. For example, add to your .nanorc
:
bind ^c copy main
bind ^x cut main
bind ^v paste main
bind ^z undo main
bind ^y redo main
bind ^f whereis main
bind F3 findnext main
bind ^h replace main
bind ^s writeout main
bind ^q exit main
bind F1 help main
bind F2 curpos main
Want to use mouse in nano?
set mouse
Iām not saying that micro is not better than nano, just that the keybindings argument is not a valid one.
OK - that should have been 'better default keybindings. Actually didnāt know (after all these years falling back to nano on ābare-bonesā systems) that it was configurable. I guess it shouldnāt have taken me 14 years to hear about it!