GNU Nano 6.3
nano-editor.org
nano-editor.org
1. Emacs isn't always on all the systems, and getting it downloaded/setup can be a pain in the butt
2. Sometimes it's just easier to launch nano quickly to edit one line in a .bashrc from the command line
3. When I bork Emacs and it doesn't work, it's nice to be able to fall back on a simple editor to edit my .emacs.d
4. It's nice to have an alternative to vi with keybindings I'm more familiar with
VIM - Vi IMproved
version 8.2.4133
by Bram Moolenaar et al.
Vim is open source and freely distributable
Help poor children in Uganda!
type :help iccf<Enter> for information
type :q<Enter> to exit
type :help<Enter> or <F1> for on-line help
type :help version8<Enter> for version info
Running in Vi compatible mode
type :set nocp<Enter> for Vim defaults
type :help cp-default<Enter> for info on this
"No help offered" or "just an empty screen" is not how I would describe the above text.[1]: https://github.com/vim/vim/blob/a96edb736d4274fc4aea46080078...
Also I like to use Vim's terminal buffer, and it turns out accidentally starting Vim inside Vim rarely leads to satisfying results.
While nano supports some standard shortcuts (arrows, Ctrl + arrows, Home, End, PgUp, PgDn), others are non-standard and I don't understand why. For example, "save" is Ctrl + O instead of common Ctrl + S, exit is "Ctrl + X" instead of "Ctrl + Q", Esc doesn't work when you want to cancel search, and so on. What a nonsense. Why should someone use different shortcuts for the same function.
Then again, I have saved :wq into a few text files too!
At least some terminals (IIRC, KDE's Konsole is one of them) show a helpful colored bar telling you that the output is paused and you should press Ctrl-Q to resume. Unfortunately, other popular terminals (like Gnome's gnome-terminal) don't have any visible indication for that.
(I use mg as my small emacs alternative; full emacs UI but tiny binary / memory. Unfortunately it doesn't support Unicode properly.)
Not light on resources compared to jmacs, but at least it loads faster.
> When I bork Emacs and it doesn't work
Only 50 % joking but like you said it's not if, it's when. Nano is there and works.
That doesn't solve point 1 obviously, but then that's never been an issue for me: emacs is always where I need it, and then there's always TRAMP.
Nor is nano.
vi is about the only editor that can be assumed to be available on a unix-like system.
Crucially, you don't have to ask nano for help. It helps by default.
It always makes me smile and think about him when I spot "nano" somewhere in the documentation.
It might be better to change it to "nano -w" instead; IIRC, some versions of nano hard-wrap lines by default (which corrupts files where line breaks are significant) unless you remember to always use "nano -w".
If it's not vim or emacs, a simple editor with CUA key binds should be the default everywhere, not nano.
I love it.
It's really nice for config file editing if color-coding is enabled and supports the config file you're working on.
As I am in Emacs anyway opening a file is very fast unless it's a really large file, multiple giga bytes.
Why would anyone close Emacs? Do you close the web browser too? What about X Windows?
Anyway, I looked up what people are saying these days. Looks like maybe a second or two?
https://www.reddit.com/r/emacs/comments/m8d55l/what_is_your_...
alias editor='emacsclient -t'
alias visual='emacsclient -c -a emacs'
Note there is also helm-aws [https://github.com/istib/helm-aws] for managing AWS EC2 server instances directly from Emacs.
Apache 2.0. I've used pine as a mail reader for well over two decades at this point, mostly on big old UNIX boxes. GNU nano always felt like the knockoff version.
I would say the problem is not to not know which app you are using but muscular reflexes. Sames happen to me if I open gedit, notepad.exe or even an text processor such as writer or word.
I had to put vim binding to make vscode bareable otherwise I kept making errors.
Even today I am not a vim purist. I tell people to try nano out at first and work their way up to emacs or vim cause in the real world most people are just changing a line in etc that broke something.
[0] https://osxdaily.com/2022/03/27/get-nano-text-editor-mac/
$ nano --version
GNU nano version 2.0.6 (compiled 19:02:51, Feb 22 2019) Email: nano@nano-editor.org Web: http://www.nano-editor.org/ Compiled options: --disable-nls --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8
(Anyway, upgraded to the latest version from MacPorts - https://ports.macports.org/port/nano/ ).
Multiline regexes, and colorization improvements (including NO_COLOR env var to disable). Support added for xsel (although it seems like most distros aren't using x anymore but better late than never!).
One day I found an editor named Nano and I've been using it since :)
I actually coded quite a bit, and built a basic social networking app fully in nano.
Looking back I have no idea how I did it. Anything less than an IDE with VIM-mode is a no-go for me these days.
My Ubuntu is a bit behind, is this the official PPA for nano, or good enough? https://launchpad.net/ubuntu/+source/nano
v6.1: "Social networks are like a fridge"
v5.7: "All the others were plowing the fields"
JK - glad to see Nano is still being developed. It was my first editor on Linux before I could learn Vi/m.
When I was doing my PhD back in the 90's, I was mostly using Windows 3.11 and writing in Fortran. My editor: Notepad. Seems incredible now. The big boys doing other research had Unix boxes, big expensive Silicon Graphics machines of various colours, I believe. One of the programmers explained to me that vi was an excellent editor, and how you used h,j,k,l to move around. I kinda rolled my eyes and thought he was mad.
A systems programmer also suggested that I used "make". I couldn't understand the point of that, as that was what batch files were for.
Roll on to the present day, and vim is my editor of choice. I did flirt with emacs at one point, but gave it up as too much configuration is involved. On vim, I do virtually no configuration. I have no plugins whatsoever, although I have set up a few custom bits and pieces in .vimrc. With just one file, it makes it very easy to bring up a new machine for me.
I've come to the conclusion that emacs and vim are very different philosophies. With emacs, it works the way you want. With vim, you work they way vim wants. So ditch your plugins, and use vim the way nature intended.
Before doing my PhD, I did a masters jointly split between two universities. I think you can tell a lot about universities by what computer systems they have. One university had a lot of Sun systems. The file servers were prone to the odd hiccup, mind. At the other university, it was mostly Windows systems. In order to program in Fortran, we had to log into the university's computer (it was some Unix system, although I don't know specifics) via telnet, or something. And use "ed". Boy, was there some bellyaching from the students over that one! I always preferred the university with the proper Unix workstations. The Windows ones always seemed a bit of a joke, without proper software like Maple (IIRC).
I'm still having issues to move lines around. Cannot get rid of my 80ies habits of C-k b, C-k e