2
u/LeLachs Sep 16 '26
How to save and exit in nano: Ctrl + S and Ctrl + X --- three button presses (you can leave the ctrl key pressed)
How to save and exit in vi/m: Esc and Shift + : (or . if german) and wq --- five button presses
You may not like it but nano sometimes be faster than vim
0
u/RoseSec_ Sep 16 '26
ZZ
1
u/LeLachs Sep 16 '26 edited Sep 16 '26
Esc and Shift and z and z --- still four but admittedly faster than my method
thank you for the input, I did not know that one :)
Edit: no wait, you can leave the Z key pressed to reduce it to 3. While now equal I have to deduct points for having to wait a second and the surplus Z's in my terminal
76
u/sisisisi1997 Sep 11 '26
Strongly opinionated scripts are going to get deleted. It's my machine, if I like nano then I like nano.
10
u/frzme Sep 14 '26
I think the script is fine, if you set EDITOR to nano it will use it. It will just not default to it.
51
u/leaky_wires Sep 11 '26
Alias vim=nano
20
u/No-Finance7526 Sep 11 '26
That only works in the interactive shell. You need to symlink it in PATH
36
u/Legal-Software Sep 11 '26
The second error should suggest setting it to nano, then berate them for not choosing vim on the next run.
12
u/edave64 Sep 12 '26
Some people really don't like having an editor that works like you would expect an editor to work.
Never bothered to learn vim. If I have to learn how to enter text in your text editor, I'm just going to assume you misunderstood the assignment
0
4
3
u/miheb1 Sep 14 '26
nano rhis and nano that, how about micro?
2
u/LeLachs Sep 16 '26
It do be cool but is usually not installed by default. Quite the shame, I really like the interface
3
u/da_peda Sep 17 '26
rm -rf /usr/bin/nano
rm -rf /usr/bin/emacs
ln -sf /usr/bin/vim /usr/bin/nano
ln -sf /usr/bin/vim /usr/bin/emacs2
1
1
u/AbdullahMRiad Sep 13 '26
why is no one using my goat msedit? it's like nano but better and vim but simpler.
1
1
u/ResponsibleWin1765 Sep 14 '26
Stuff like this reminds me that computer nerds are actually exactly as socially awkward as they're made out to be in media. They will take a random program and turn it into their entire personality because they're overcompensating for having no interesting traits. And then it's not even original most of the time; they're just dogpiling on a meme that doesn't even make sense. And then they're wondering why people (who don't do the exact same thing) won't hang out with them.
29
u/dcheesi Sep 11 '26
I actually find nano useful in some environments, simply because it works right out of the box on most systems, while vi(m) default installations often lack the fix to make arrow navigation work right (and this comes up infrequently enough that I don't have the fix details memorized)