#Software #Useful Notes

Changing Text Editors In Pat

There is a good reason to cultivate your garden of blogs.

What Now?

OK. In the great EMACS vs. vi Wars from long, long ago (even pre-Slashdot) I was a Champion of vi because it was always there, it was compact, and it wasn’t it’s own operating system. It was a tough day for me when I found out my dad was an EMACS guy. It made sense, but it was tough. And yes, I moved on to VIM because I like colors and syntax highlighting as much as the next tired coder. I’ve been pretty happy with VIM on all of my platforms. Sure, mouse stuff is clunky and really relies on the terminal to handle a lot, but it’s doable. But that was before I checked my blog feeds.

My online ham radio buddy DK1MI has a blog at RZ01.org and posts all kinds of cool stuff there. You should add it to your RSS reader. More about the site HERE

Well, there was this post about a new text editor called micro and it seems that it handles things a little more gracefully with cutting/pasting and mouse stuff. Also turns out that DK1MI put together some ADIF Syntax Highlighting for it. I figured I’d give it a look. It was worth it.

OK. Great. So…Why The Post?

I do a lot on the command line and that includes all of my Winlink nets like the Fedi Friday Winlink Net with pat. I wanted to be sure that micro would be the text editor that pat chose because I couldn’t remember why it picked VIM and how I configured that. It turns out that on the Mac it is as simple as going into your ~/.zshrc or ~/.bash_profile and adding:

 export EDITOR='micro'

and then restarting your terminal so it takes effect. There’s a source command or something that I can’t remember right now that lets you skip the restarting of the terminal and all that, but as I just said, I can’t remember it.

So that’s it. Just posting this to say micro is cool and setting the default editor for pat is simple so that the next time my machine blows up, I have some reference material.

73 and thanks for reading!