no matter what you editor you use, set EDITOR to whatever you want, then when you want to edit files as root do `sudo -e /path/to/file` thanks me later
GNU nano is my editor of choice
11–20 of 236 posts
Re: GNU nano is my editor of choice
#12there are far worse choices. for quick stuff, i either emacs -q or nano more or less interchangably, and in my larval stage i lived in nano (and pine!) for many years happily enough. These days, i find that my movement key memory will betray me in nano at the worst time(s), so i tend to stick with emacs -q -nw for light-and-fast stuff, but when that's annoying to obtain, i'll happily fall back and think more carefull…
emacs --daemon
Then connect with emacsclient. You can also name the daemon which lets you have specific configurations for specific tasks. At that point, launching emacs for quick stuff is very fast.Re: GNU nano is my editor of choice
#13How do you navigate text in nano?
* pg up/down
* find (^W)
* go to line (^_)
the first two are standard across applications, and the last two are in the help menu that shows up by default.
Re: GNU nano is my editor of choice
#14To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful.
So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely being given contextual information about the symbols you are working with (type, fields, methods, etc) is helpful? Perhaps there are languages or domains that are better suited? I can see that there's not much difference between an ide and editor for new languages but why do people prefer text editing and prioritize typing speed where IDEs exist? Does an editor create a sort of flow or deeper state since lack of tooling requires deeper mental context?
Re: GNU nano is my editor of choice
#15Why is nano the favourite editor? What's the upsides and why does it stay the favourite?
Editors like Vim have a learning curve because they introduce the concept of modal editing which takes some getting used to.
Re: GNU nano is my editor of choice
#16I actually don’t use nano though only because it’s not always there. I learned a long time to pick a narrow subset of ubiquitous tools to know really well, compose those and leave it at that. If I’m dumped in single user mode somewhere with no network, or on a system I don’t have the ability to install packages on, a usable vi implementation is always available.
Going back a couple of decades a colleague was stuck on a Solaris box because he needed pico installed and Miss root was off sick. He learned vi that day.
Incidentally I used to embarrassingly suck at vi until I completely hosed a couple of systems.
Re: GNU nano is my editor of choice
#17How do you navigate text in nano?
Re: GNU nano is my editor of choice
#18So I have a question and I'd like to understand if possible. To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful. So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely bei…
An IDE is usually good enough, but for some environments, having total control of your tooling can give you big productivity boosts. And not every software depends upon lines and lines of code. Sometimes, you will write useful software that's only a couple hundred lines, but required you hundreds of hours thinking about the problem :)
Re: GNU nano is my editor of choice
#19So I have a question and I'd like to understand if possible. To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful. So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely bei…
Re: GNU nano is my editor of choice
#20This post showed how to add a slightly enhanced minibar, remove the help and add syntax highlighting. It would be more important for me how to quickly navigate text.