64 points

I feel like the images should be switched.

permalink
report
reply
-11 points

When you know how to exit, you just slap your face 🤦 and ask “why… why, please, why don’t they add new shortcuts 🤦!”.

permalink
report
parent
reply
19 points

Lol if you know how to exit, you may know that you actually can change almost everything about vim.

permalink
report
parent
reply
-7 points
*

I don’t think you can add modifier keys in shortcuts.

And this behavior should come out of the box, not me changing stuff around so I can make it usable. For something that I use all the time, sure, but I only use a terminal text editor with git, and I don’t use git that often. For everything else, I use a GUI text editor (mousepad, leafpad, whatever).

permalink
report
parent
reply
1 point

IDK, I exit vim and promptly fall asleep.

permalink
report
parent
reply
1 point

Likewise 👍.

permalink
report
parent
reply
50 points

If you wanna save changes: :wq

If not: :q!

Else: :SpanishInquisition

permalink
report
reply
6 points

Why do so many people prefer :wq over :x?

permalink
report
parent
reply
12 points

Cause I don’t like to think about my x

permalink
report
parent
reply
6 points

Because :wq to me means “Issue command write, followed by command quit.” “Issue command x” to me means nothing in the context of vim, and ctrl + x on most systems is reserved for cutting, so it just “feels” wrong.

permalink
report
parent
reply
4 points

:x was a gamechanger. And it doesn’t update the file’s modify date if you made no changes.

Sometimes I just sit back and think about all that saved time and effort so much that I have actually lost time by switching from :wq.

permalink
report
parent
reply
1 point

why not?

permalink
report
parent
reply
1 point

same reason I prefer :wq to ZZ. muscle memory.

permalink
report
parent
reply
1 point

There is a other option?

permalink
report
parent
reply
5 points

Hmm, I didn’t expect that last one.

permalink
report
parent
reply
3 points

I did not expect the Spanish inquisition!

permalink
report
parent
reply
1 point

help! i wanna leave!
:wq
why isn’t it working???

permalink
report
parent
reply
2 points

You have been chosen by the Vim Dommy Mommy. You cannot leave.

permalink
report
parent
reply
31 points
*

I prefer the extremely intuitive:

[C-R]=system("grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9")

or

i:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9[esc]Y:@"[cr]

It just rolls off the fingers, doesn’t it?

Edit: damn it lemmy didn’t like my meme because it assumes that characters between angle brackets are html tags :( you ruined it lemmy

EDIT 2: rewrote it, just assume that square brackets are buttons not characters

permalink
report
reply
2 points

This is how you get buffer files everywhere

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
27 points

I always get annoyed when I’m on some system and nano pops up and I need to figure out how to kill that thing.

permalink
report
reply
29 points

Nano literally tells you all the shortcuts to your face.

permalink
report
parent
reply
-16 points

It shows a message which wastes valuable screen estate, especially on low resolution terminals, containing a message I have to read every single time because the keys are not in muscle memory, and never will because the bindings are stupid.

On systems I have control over the reaction to nano popping up is exiting, removing it, making sure the package system blocks reinstallation attempts, and go back to what I was initially doing in a sane editor.

permalink
report
parent
reply
13 points

My man, most of us aren’t connecting to our mainframes on VT20s these days. Even on my phone screen the three extra lines nano takes over vi aren’t a problem.

Also if you have the time to go through all that you have the time to learn ctrl+x.

permalink
report
parent
reply
11 points

You have so much pent up emotion over a text editor. Life can be so much more my friend!

permalink
report
parent
reply
7 points

Same. As a vim user I now can’t quit nano.

permalink
report
parent
reply
5 points

Very intuitive - Ctrl + X… unlike vim.

permalink
report
parent
reply
12 points

Why is Ctrl-X intuitive? Shouldn’t it be Ctrl-Q (for “quit”)?

permalink
report
parent
reply
5 points

CTRL+eXit

permalink
report
parent
reply
4 points

Because it also sends the kill signal in every terminal I’ve witnessed yet… And you have it right on screen the second you start Nano.

permalink
report
parent
reply
2 points
*

Because nano just shows how to exit, as well as some other basic functions at bottom

permalink
report
parent
reply
1 point

Why not just using Micro? Ctrl + Q. Intuitive af

permalink
report
parent
reply
1 point
*

Yeah, sure, that works as well.

As long as I get to use modifier keys, almost anything is fine with me. We don’t live in the 70s, that was 50 years ago. If backwards compatibility is what they’re after, I’m sorry but I think they overdid it. Plus, you can just add them, the defaults don’t need to be changed.

permalink
report
parent
reply
1 point
*

gg/un2x?-d/like

FTFY

permalink
report
parent
reply
2 points
*

I’m not planning on googling that 😒.

permalink
report
parent
reply
25 points

There’s a button to exit vim on your pc. Just hold it 7 seconds and vim is closed. 😅

permalink
report
reply
7 points

it’s right next to the turbo button

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, and wants to interject for a moment. You can stop now.

Please report posts and comments that break these rules!

Community stats

  • 6.5K

    Monthly active users

  • 1.3K

    Posts

  • 71K

    Comments