Wish me good luck bois.Still trying to figure out how strings workšŸ˜‚

BTW, Nano also has syntax highlighting, itā€™s just disabled by default. Add this to your .nanorc

include /usr/share/nano/*.nanorc
5 Likes

Hah! Didnā€™t know that!
TIL :grin:

2 Likes

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!

2 Likes

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.

4 Likes

OK - that should have been 'better default keybindings. :grin: 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!

1 Like