701
submitted 10 months ago by drbi@lemmy.world to c/linuxmemes@lemmy.world
top 50 comments
sorted by: hot top controversial new old
[-] FinalBoy1975@lemmy.world 36 points 10 months ago

I actually learned how to use vi like 30 years ago and I had all the commands memorized. Then, nano came along. All the commands are at the bottom of the screen to remind you. It was just too tempting to pass up. However, I can't help but suspect that somewhere out there I might have left a vi session open because maybe I mistyped. I might have accidentally typed ;q! instead of :q! or something.

[-] ChapolinColoradoNZ@lemmy.world 7 points 10 months ago

I get stressed out every time I need to jump into a server and check something and the only editor is vi. If I can I install nano straight away. Btw, :q! does nothing without pressing ESC first! Hehehe

[-] FinalBoy1975@lemmy.world 5 points 10 months ago

Yeah, that's part of the joke. I probably didn't press ESC first. LOL

[-] TheInsane42@lemmy.world 7 points 10 months ago

I'm feeling old now... I've been using vi for 35y now and was happy when I got vi.exe on a dos box, as I hated edit. I still don't like 'simple' editors like nano/joe.

I used kill to get out of emacs when trying it agter 7y of vi usage, so I get the need to get mideval on editors users aren't used off. ;)

[-] FinalBoy1975@lemmy.world 7 points 10 months ago

vi has always been my bane because I'm a sloppy typist. I can't count the number of files i had to fix because they ended with :q i like nano because the commands are ctrl + whatever. i don't make a mess.

[-] TheInsane42@lemmy.world 2 points 10 months ago

I'm a sloppy typer as well, but somehow I notice my mistakes while I make them and correct them on the go.

What doesn't help is that the readout of the keyboard hasn't changed (got faster) since decades, which sometimes hinders me more then my sloppyness.

load more comments (3 replies)
[-] nickwitha_k 31 points 10 months ago

You can :q! any time you want, but you can never leave.

[-] backhdlp@lemmy.blahaj.zone 5 points 10 months ago

Insert Mode tho

[-] glibg10b@lemmy.ml 23 points 10 months ago* (last edited 10 months ago)
    • Esc × 2
    • CTRL-[ × 2
    • CTRL-\ CTRL-N × 2
    • :q
    • :qa
    • :wq
    • :wq!
    • :wqa
    • :x
    • ZZ
    • :q!
    • ZQ
    • :q!
    • :cq
[-] gonzo0815@sh.itjust.works 23 points 10 months ago

It's really easy, just unplug your computer.

[-] nebula42@lemmy.world 17 points 10 months ago

It's the hotel California of text editors >:)

[-] cloudy1999@sh.itjust.works 2 points 10 months ago

You can ZZ any time you like, but you can never leave.

[-] GreenMario@lemm.ee 15 points 10 months ago

Nano is pretty good if you're in a terminal. Used to use vim for ssh related stuff but since nano added syntax highlights I didn't go back.

[-] glibg10b@lemmy.ml 5 points 10 months ago* (last edited 10 months ago)

Nano's only appeal is that it's beginner-friendly, but you already know Vim, so why switch?

[-] asuka@sh.itjust.works 4 points 10 months ago

Because Nano just works. Vim is insane affront to good design and standards.

load more comments (1 replies)
load more comments (6 replies)
[-] dustyData@lemmy.world 3 points 10 months ago

Micro exists. It's Nano with Lua plugins. Very robust and minimalist. No magic incantations. I actually use it to code simple stuff that I just don't want to wait a minute for VSCode to spin its wheels.

[-] Lolen10@lemmy.fmhy.net 14 points 10 months ago

I know how to get out. But I still like nano a lot more.

load more comments (4 replies)
[-] PeterPoopshit@lemmy.world 12 points 10 months ago

You exit vim by unplugging the pc.

[-] glad_cat 11 points 10 months ago

That's how you learn Linux and Google: how to kill vim? kill -9 vim.

[-] glibg10b@lemmy.ml 2 points 10 months ago

"vim" isn't a valid PID. I think you meant killall -9 vim

[-] redempt@lemmy.world 11 points 10 months ago
load more comments (1 replies)
[-] Araozu@lemmy.world 9 points 10 months ago

My main problem with vim is that they use hjkl instead of jkl; , it doesn't make sense to me why they'd do that.

And my second problem is that I use my own custom keyboard layout instead of qwerty, so I'd have to remap all the keys. Why spend hours learning and then rebinding all the keys when I can instead play some Dota? /s

[-] Asymptote@lemmy.dbzer0.com 3 points 10 months ago

My main problem with vim is that they use hjkl instead of jkl; , it doesn't make sense to me why they'd do that.

With qwerty you can be sure of layout of the letters and numbers across languages.

[-] Araozu@lemmy.world 2 points 10 months ago

Makes sense. Spanish keyboards have Ñ instead of semicolon, so it'd break. But I'm sure other things break in France, where they use AZERTY. So it's not that universal.

That makes me wonder, is there a way to get a keypress based on the position of the key, rather than the keycode? Would that be useful? Would assuming everyone is using a normal keyboard with letters in the same place even make sense? How would that interop with things like QMK?

[-] evranch@lemmy.ca 3 points 10 months ago* (last edited 10 months ago)

Been a vim user for decades but never used hjkl. Probably strongly correlated with the fact I'm non QWERTY as well (Dvorak). I just use the arrow keys combined with the jumps to start/end of lines/words or to characters.

You don't need to remap anything aside from hjkl as the keybindings are mostly mnemonic and not location based.

On Dvorak at least, ^C is so easy to press that it's great for switching modes, I never use Esc.

I find the more time you've spent in non-graphical shells, especially on low spec devices or laggy connections, the more you appreciate vim. Instead of pressing Del a bunch of times and having it overrun you can ct" to swap out that string. I even use vim keys in vscode, as my hands are so used to them.

My biggest complaint is logging into some legacy device that only has vi and not vim, when shortcuts like "dap" or "caw" don't work

load more comments (2 replies)
[-] eggymachus@sh.itjust.works 9 points 10 months ago

Now do ed...

[-] JerkyChew@lemmy.one 8 points 10 months ago

Pssh, come on, it's just :q or :q! - couldn't be simpler or more intuitive!

[-] eslaf@lemmy.world 7 points 10 months ago

:q does the trick

[-] velovix@hedge.town 7 points 10 months ago

I took the vim pill a few years ago and spent tons of time learning its shortcuts, trying out plugins, and forming strong opinions about my relationship with my text editor. It's a great tool, but I personally lost the plot somewhere down the line. I'm not sure that passion actually served me.

load more comments (1 replies)
[-] Kentronix@lemmy.world 7 points 10 months ago
[-] 018118055@sopuli.xyz 5 points 10 months ago

!killall vim

[-] dipshit@lemmy.world 3 points 10 months ago
[-] naticus@lemmy.world 2 points 10 months ago

I love using vim, but I'm not great at it. I'm just happy I completely understood this.

load more comments (3 replies)
[-] Kaelygon@lemmy.world 3 points 10 months ago
load more comments (2 replies)
load more comments
view more: next ›
this post was submitted on 03 Sep 2023
701 points (93.2% liked)

linuxmemes

19825 readers
1076 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS