Vim prank: alias vim='vim -y' (learnbyexample.github.io)
from learnbyexample@programming.dev to linux@lemmy.ml on 01 Apr 2024 10:57
https://programming.dev/post/12224802

Did you know that Vim has an Easy mode? It’s the hardest mode for those already familiar with Vim 🙃

#linux

threaded - newest

BaalInvoker@lemmy.eco.br on 01 Apr 2024 11:03 next collapse

Well… I typed “vim -y” at the terminal to see what was that and now I don’t know how to leave vim.

BaalInvoker@lemmy.eco.br on 01 Apr 2024 11:08 next collapse

ctrl+Q did the job!

cupcakezealot@lemmy.blahaj.zone on 01 Apr 2024 17:25 collapse

see the cord plugged into the wall?

PotatoesFall@discuss.tchncs.de on 01 Apr 2024 11:29 next collapse

What does the flag do?

MyNameIsRichard@lemmy.ml on 01 Apr 2024 11:36 next collapse

According to vim --help:

-y Easy mode (like “evim”, modeless)

learnbyexample@programming.dev on 01 Apr 2024 13:36 collapse

As per the manual, “Mappings are set up to work like most click-and-type editors” - which is best suited with GUI Vim.

While Vim doesn’t make sense to use without the modes, there are plugins like github.com/tombh/novim-mode!

Ozy@lemmy.world on 01 Apr 2024 13:01 next collapse

“prank” a vim user. You mean make it normal?

still, cool nonetheless

Wispy2891@lemmy.world on 01 Apr 2024 20:55 collapse

For a vim user it’s going to cause panic.

Copy and paste suddenly become illogical keybindings like ctrl+c and ctrl+v

For closing the program you have to press a very weird X instead of the much more natural :wq

And so on

Peffse@lemmy.world on 01 Apr 2024 22:30 collapse

I would be so confused and so very angry at the end. I had a hard enough time working inside vim-tiny.

mypasswordis1234@lemmy.world on 01 Apr 2024 13:20 next collapse

It makes that it’s impossible to exit vim for even an experienced user, I guess

eveninghere@beehaw.org on 01 Apr 2024 14:16 next collapse

I need -n that gives me the hardest vim.

yesman@lemmy.world on 01 Apr 2024 16:06 next collapse

alias vim=‘nano’

flashgnash@lemm.ee on 01 Apr 2024 17:21 next collapse

Better yet, swap the binaries

cupcakezealot@lemmy.blahaj.zone on 01 Apr 2024 17:24 next collapse

alias vim=‘wordpad.exe’

phoenixz@lemmy.ca on 02 Apr 2024 04:34 collapse

Slow down there, Satan.

fin@sh.itjust.works on 02 Apr 2024 00:39 collapse

I’ll break the keyboard if someone would do that to me

fratermus@lemmy.sdf.org on 01 Apr 2024 17:16 next collapse

Can’t find it now, but someone once made a vi [gVim?} version with a Clippy-style helper: “I see you’ve pressed ESC. Would you like to…”

palordrolap@kbin.social on 01 Apr 2024 17:38 next collapse

That started out as a fictional implementation in the turn-of-the-century webcomic User Friendly (main site died a while back, unfortunately), and then someone decided that it would be fun to implement it for real.

The one in the comic was deliberately created to be evil. Not sure about the real-world implementation.

acockworkorange@mander.xyz on 01 Apr 2024 19:01 collapse

Oh no. I thought it was an April fools joke. UF truly is no more.

Time to donate to the Internet Archive.

AnUnusualRelic@lemmy.world on 01 Apr 2024 22:16 next collapse

Say hello to vigor. It might require some tweaking to compile nowadays (or not, who knows).

wurosh@lemmy.ml on 02 Apr 2024 04:16 collapse

The kakoune editor cimes with clippy by default. It’s not exactly a Vim version though, but close enough.

neurospice@lemmy.dbzer0.com on 01 Apr 2024 23:04 collapse

There is no help that can save me for I cannot exit vim.

Vim takes yet another victim. Now I’m stuck in eternal damnation, never able to close the damn thing.

<img alt="" src="https://lemmy.dbzer0.com/pictrs/image/3d5a7fa9-709b-4de9-a0db-d7984c746431.png">