by RMPR · 6y ago · 0 comments
While vi comes with all installs
> is very easy to use. It has all the shortcut listed on page so it is quite user friendly out of the box
Tell that to the users that don't know what ^ stands for
> After learning vim for a bit, I find nano quite superior for my use case mainly editing files inside terminal on remote servers.
I just don't understand how this is possible, except if you're doing very basic edits (even in that case...)
If you run `nano` it shows a message that you can get help using 'Ctrl-G'. In the second paragraph it tells you what '^' stands for. It will be a problem if you somehow ended in nano unintentionally. Even then someone can figure that it means either 'Alt' or 'Ctrl', that is the modifier keys.
>I just don't understand how this is possible, except if you're doing very basic edits (even in that case...)
Some people prefer or/and find easier to work with a modeless editor.
I use nano as my daily driver, and here is how:
- I have a nanorc I copy around but am quite comfortable without. Here it is. You can use it under WTFPL-1. Feel free to fork it, but I'm not accepting pull requests.
set multibuffer
set nohelp
# Defaults for older versions
set nowrap
set smooth
set morespace
unset boldtext
- I use ^K and ^U to cut and paste lines of text.- If I need to edit multiple files, I use ^R
- If I need to find and/or replace, I use ^W (find), optionally with ^R (replace) and/or M-R (Regexp).
- Sometimes I need to go to a specific line/col, so I use ^_
Basically there's nothing else I want my text editor to do. I want minimal magic.
When vi/vim aren't available, I usually just end up using sed.
Which is why I prefer Nano over vim, I don't edit _that_ much from the console so I only have one easy thing to remember.
If there's no nano available like on busybox, I'll default to vi, but I don't prefer it.
As such, I almost always just grabs nano for these things, and use an IDE when working on code.
Unfortunately, for me when I googled that exact phrase just now it gives a "Featured Snippet" saying it means "the beginning of a line", which is about regexen and and also only sort of right in that context. The wikipedia page is the first real result though.
Edit: I was spelling caret wrong. oops.
Edit: Also there are a lot of stories of "this old system that is central to our operation that nobody except that one guy 10 years ago knew how to set up" in companies.
But the person I replied to said 'all' which is incorrect. If he said 'most' or something I wouldn't have replied :)
I think also I was on a real Linux box a few weeks ago (can’t remember what distro, sorry) that only came with ed by default. That was interesting, at least until I gave up and installed vi.
Most edits I do if I'm not on my daily driver is basic edits. Making adjustments to config files, etc. Doesn't require all the magic of Vim. Still prefer Vim though. Not having my Vim keybindings in an editor is like using a keyboard with a different layout.
The users who have already figured out how to open a terminal, find their file, know what nano is and how to launch it?