People who know me know that after my 8+ years of being a Vi/Vim user I left that world of arcane commands and time wasted on endless configuration tweaking to use editors that got the fuck out of my way and just let me focus on editing. Well, one of the editors I do tend to use a lot now is Nano. However, there's been barriers preventing me from using Nano "full-time" (e.g., on everything I edit from source code to configuration files). Because of these barriers I was only using Nano when I wasn't otherwise at a desktop (where I was just using Kate). Specifically, the barriers for general Nano usage were:
- Lack of real undo/redo commands.
Honestly, this problem is pretty universal among text-based editors, so it's more of a gripe than anything else. It's only slightly better in Vim and Emacs where they at least have crippled undo/redo commands. Yes I know you can get undo/redo-like behavior in Nano using other features, but that's not the point. - A lack of good syntax highlighting for languages I use frequently (like Python).
If you search for Python syntax highlighting and Nano you get a lot of links that contain code similar to what you find here. The problem? Well whoever originally did that syntax code obviously doesn't code regularly in Python using Nano... because it's about as broken as it can be.
The first problem is one I just kind of have to wait until Nano upstream fixes (mainly because I don't have time to get up to speed on Nano dev and hack on it myself). It has an easy workaround, but it's still an annoyance.
The second problem, however, was something I could do something about, and, due to recent frustrations with Kate, I was finally spurned into starting a Nano Python syntax highlighting rewrite.



