First funny thing ive seen Microslop Copilot do...

This is the closest I have seen Copilot doing something like a human Programmer would

I often see Copilot get stuck in a nonresponsive shell after it used cat > file. It's hilarious to watch the first time, but I'm a bit tired of it by now. Why doesn't it just edit files like it normally does?

Ok this proves that AI has reaches human level intelligence.

I was a programmer for the Commodore PET, let me see what I can do.

10 Exit VIM

20 end

did it work?

It really was an oversight forgetting to put in a Exit.

Every computer has a built-in "exit vim" button, conveniently located on the chassis, usually next to the power cord. Flick it to 0, then back to 1, and you'll find vim has been successfully exited. :)

What if my PC boots straight into Vim? It's not like I need anything else, can do everything in Vim

Jokes aside, vim as PID 1 is just a bad idea.

Emacs on the other hand: https://github.com/emacs-os/el-init

That settles it. Emacs is better than Vim

Can vim be pid-1? No? emacs can B)

mmmkay.

You simply need to set up a MCP server which controls the smart plug and give the AI access to it.

Blowing through all those tokens failing to exit a vim

i cant understand all the vim hyping. its probably very neat and can do whatever, but what good is that if it takes awful amount of bother to learn everything by heart since interface has been designed to be as unfriendly as possible. it doesnt have to be fit for office worker, but at least some ease of use is needed.

Vim is actually highly ergonomic; you can do everything with a minimum of keystrokes without moving a hand away to a mouse or touchpad or oven the arrow keys. If that's worth the time investment to learn it, is a highly subjective question. But I’d say it's a lot easier than many people think.

since interface has been designed to be as unfriendly as possible

No, it hasn't.

It (well, vi, which vim is a clone of) has been designed to be a possible interface on a keyboard that doesn't have arrow keys or other modifier keys than shift. There aren't that many ways to program a visual text editor when those are your constraints.

That it's more productive once you know it is a side-effect.

It (well, vi, which vim is a clone of) has been designed to be a possible interface on a keyboard that doesn't have arrow keys or other modifier keys than shift.

That sounds great and all, but in the last 40yrs I have not owned (or seen....) A keyboard like that. For whom the heck was this useful? 😁

Not mocking, I do use vim or nano, but also never got why it had to be so incredibly unintuitive.

Even then, not having to move your hands means not spending time... Moving your hands.

This is useful for people who want to spend time learning to be enforcement at what they do. In the same way that holding a Nintendo controller "weird" is useful for Tetris speed runners.

If you are as efficient as you need to be using a shower interface, then great. Other people need (or more likely want) to be more efficient than that.

Maybe I'm a luddite, but I still don't understand why people want to spend their time arguing with Claude code and fixing it's bugs. Rather than just learning to write productive coffee themselves. But, people do. That's their choice, and I let them to it.

If prefer to spend my time learning him and code, than Claude and idiosyncrasies, and then whatever to comes next, and next again.

You don't have to move your hands while touch typing. This is the single biggest reason why vim is still used today, regardless of whether you have arrow keys or not. In fact vim does support arrow keys and using the mouse as well! It's just much easier to edit files without needing to move your hands and/or use a touchpad/mouse.

At the time vi was originally developed, such keyboards did exist (on terminals). That's the reason it works the way it does.

Weird terminals but ok. I actually even like vim

The interface is modal editing, which, yes, takes some getting used to. The payoff is that you get a kind of programming language for text editing. Rather than memorizing ctrl+shift+alt-style keybinds, you decompose stuff into chainable actions.

Have you ever played a video game, be it with kbd+mouse or gamepad, and realize you’re doing a bunch of stuff without actually consciously thinking about what buttons you’re pressing? That’s what working in editors like Vim or (my fav) Helix feels like.

It’s a specialist tool. You can say the same thing about any specialist tool. Why should CNC machine tools exist if they’re so hard to use and take a lot of training and are dangerous in the hands of untrained people?

Reject CNC machines, return to rock!

The CNC machine seems to be significantly easier to turn off when you’re done with it, though. Judging from the memes, anyway - I’ve never had to use vim, thankfully.

ESC

then

:wq

Write quit

:q!

Force quit (no save)

I don't even use vim, other than for commit messages lol

It’s very heavily overstated how difficult it is to exit VI.

Friendly is useful in an application you use once a week. Anything you want to work with daily, like a text editor, needs to be efficient.

fluency. languages are hard to learn but when you know them you communicate better. same as touch-typing, or mobas.

The cult of vim feels very superior for being able to plow through its user-hostility

In terms of command line editors, vim is extremely powerful and relatively easy to get started with, once you know how to get into insert mode and then save/quit. nano/pico are easier to learn but less powerful, and emacs is probably more powerful than vim, and more daunting to learn. Also, vim is installed on almost all systems, so there's not really any extra work to get started using it.

I learned (neo)vim this last year. It really wasn't that bad. You need to learn like maybe a dozen hotkeys to get going, but after that you can do :h <topic> for everything else. And it's not even like you lose full functionality of your mouse, at least neovim supports a lot of mouse movements

And even if you decide to go for modal editors, Helix is a lot better out of the box

It's not "designed to be as unfriendly as possible", it's designed to be exactly what you configure it to be, that's why I love it. Every keymap, every screen position, every worflow, the way it searches through lines and files names, everything was configured by me, so whenever I do something in my editor it always make absolute sense for me, because it was literally made for me.

If you get me to someone else's neovim config I would probably be absolutely lost because it's a very unique experience for each person, some people like to bloat it out with plugins others like to keep it bare minimum and so on.

One biggest lie abput vim is the productivity, it doesn't make you that much faster in comparison to any other editor if you take the time to learn the keymaps from them, the real strong point of neovim is having an editor that is absolutely tailor made for you in a way you cannot achieve in OOB editors.

Yeah, but as a 30-year vi/vim user, using it nearly every day - it IS pretty user-unfriendly

yes, i can get behind the configurability, lets you make the program into your own personal tool nicely. my problem is that you have to do it in such difficult and unintuitive way. though it has been very long time since i last took a look at vim, so maybe things have improved and its easier to configure now, i doubt it though.

So it would be nice if getting into it was easier even if you havent used it as your main editor for last 50 years. not being able to even exit vim without looking up guide for it demonstrates this quite nicely.

It tells you how to exit if you press ctrl+C, which is many people's first instinct.

Nowadays there many neovim distros that come setup with everything and you can learn as you go, but definitely not user-friendly still and the distros kind kill the point for me personally.

I totally understand prefering users friendly tools, but I think that fornevery software there is always some degree of granularity that makes it user unfriendly.

You asked about what the hype about vim was, I tell you: it's the granularity of the configuration it's 100% not it's user friendliness.

My preferred text editors are Neovim and Kate

Kate has some convenient features, mainly the easy GUI. Neovim is the CLI text editor that I find works best for me.

No one can exit vim. It's simply not possible.

There are even legends that the devil himself was onced tricked into opening vim and is stuck there since.

That explains the many vim enthusiasts that don't want any other editor. They simply can't exit the vim instance they once accidentally opened...

Stockholm Editor

The Eagles called it Hotel California.

"We are all just prisoners here of our own device"
So true, so true.

You just reboot. Right?

"... and that's why I need you to take the power plant offline."

How to protect your computer from automated AI attacks 101: start vim

They really are just like us... 🥲

Instructions: "Next, open the .config file in vim..."

Me:

What a weird way to spell nano

Nano is the proper tool for this job.

I prefer micro, but I never use it because my brain just autotypes nano and then it's too late I'm already in

neovim

but

use whatever you like

*Vim

so human of it!

Isn't it? I can't decide whether I believe this is an easter egg

If it was trained properly on Internet data it would just respond with "you can't"

If you need to exit vim, just open a new terminal and reboot the machine.

I don't often see folks with such well earned nicks. Usually for dinner not to be, but that's rather why I'm here.

Shit, does that mean LLMs are real programmers, bow?

Ngl, there have been some times when i Ctrl-Z, then found and killed the PID

No need to find it, just kill %1, to kill the first background job in a shell (check jobs otherwise to find the right %n)

AI gonna train on this comment thread and learn to kill

 kill -9

You must use 9mm to kill.

Why :wq doesnt work?

If it’s a read only file it won’t work, but it might be in insert mode and can’t escape.

It should have tried :q!

I think it might not be vim.

Why?

Could be in recording mode, which usually needs a couple ESC or a Q then you can :wq

Come on in, <esc>J us, soon you will learn to love the one true editor. Launch vi and be <esc>:w. Soon you will want to <esc>:%s/other editors/vi/g. <esc>dd your hesitation and do it.

Launch vi and be <esc>:w.

Ah, a fellow person of culture, I see. It will forever be vi to me. And pico for that matter.

It will forever be vi to me.

Good, good, spread the true word!

And pico for that matter.

HERETIC! UNBELIEVER!

Hey, same.

Same tbh

Is it stupid? Just do C-x-c!

This is the way.

Copilot is just like me!

I didn't think I could be replaced until now.

ZZ? ZC? Come on now, copilot. You have more options than simply killing it.

https://github.com/hakluke/how-to-exit-vim/blob/master/README.md

lol jokes write themselves

The command opened the alternate buffer.

midwest.social

Rules

  1. No porn.
  2. No bigotry, hate speech.
  3. No ads / spamming.
  4. No conspiracies / QAnon / antivaxx sentiment
  5. No zionists
  6. No fascists

Chat Room

Matrix chat room: https://matrix.to/#/#midwestsociallemmy:matrix.org

Communities

Communities from our friends:

Donations

LiberaPay link: https://liberapay.com/seahorse