Spyke
Chunkreply
lemmy.world

Ed is king. Every single time I have to work on a severely resource constrained system I always use Ed.

That's literally never happened to me but that won't stop me from saying it.

17
mutter9355reply
discuss.tchncs.de

I mean, I don't know how severly resource constrained a system has to be to not even be able to run vi.

6

I once used Linux on an actual honest-to-God teletype.

Granted, it was set up as a novelty and the thing it was hooked up to was a Pi 4, but still.

1
Chunkreply
lemmy.world

Except I'm too dumb to use even the neovim plugin manager let alone configure the thing. I have to copy existing configs like a noob :(

4

Isn't copying from others how everyone does (neo)vim? Besides, I'm even "worse" and just use lazyvim.

3
lemmy.world

My serial killer trait is that I use vi instead of vim cause I'm too lazy to type the extra character. Tho if for some reason, vi tab completed to vim, I'd probably use vim

45
lemmy.world

{vi} = 2 {vim} = 3 {v=vim} = 5

I'd need to run vi at least 5 times to have a net gain in saving keystrokes. I'm typically in effemerial systems created by the users of our env, so rarely am I going to gain those strokes back

But also, why am I trying to apply logic to this? I'll often cat a file before editing it. This shit is just illogical idiosyncrasies I've picked up over the years. I'm probably creating posthoc justifications for insane things I do cause it's hard to override muscle memory

17
lemmy.world

Here's a link I found that might be good if you are interested in more:

https://cloudnativenow.com/topics/ephemeral-idempotent-and-immutable-infrastructure/

https://guymorton.medium.com/persistent-and-ephemeral-infrastructure-as-code-in-aws-42b33939dcf1

There are different levels of effemeriality. The simplest example I use daily would be an autoscaling group in AWS. Especially if you use Spot Instances to save money, thi gs may scale in and out whenever.

So if a development team creates a new autoscaling group and I need to get into an instance to test something, unless I add stuff to their IaC, I'm stuck with their configuration. I need to assume that every time I ssh into one of those instances, it's a brand new instance. But it'd be a big challenge for me to go to their repo and make a PR to alias a command whenever an instance in that resource is created

Stuff can be even more temporary if it's something like an ECS task which creates a container with a read only filesystem only when a task is needed to be done. But I don't want to get too deep in the weeds (or deeper than I already have)

terraform workspace will at least stick around for a while so you might be in and out of the same system multiple times.

2

Nano is the best when you just need an editor, you can as well use an IDE instead of vi(m) or Emacs.

0

Aliases are just bloat! You can do just fine without them. Heck, why not remove the ASCII conversion and read everything in hex or binary?

It's all about SPEED and efficiency here!

18

I'm in DevOps so I'm in a lot of effemerial systems so in practice, I will run into systems where profile hasn't been set up. Tho I do like the idea of making sure all systems properly have that aliased cause it'd be serial killer vibes to spend hours of time to make sure that I can save a keystroke.

Tho it'd never make it through PR. Also, wild require explaining to my coworkers that I do this

2
exprreply
programming.dev

Most all distros alias vi to vim already, so it makes no difference.

11

You use vi because you are lazy.

I used vi because I am too stupid to close it.

We are not the same.

8

I'll have to check tomarrow if RHEL and UBI do this.

Did some quick googling and looks like cent has that alias by default but doesn't do it when root. Which would explain why I do get inconsistent results with vi. I never thought about it in detail besides just knowing that there are some visual changes. Thanks for the info, I'll be noticing this now that I know!

1
puppyreply
lemmy.world

You are missing out! I used to only use vim to edit config files. So I knew my way around (albeit, slowly). I installed the IdeaVim plugin a week ago and learned some new key bindings I wasn't using. A week in I'm almost faster than before! And it's only going to get better after I've acquired muscle memory (I'm nearly there.) and move on to complex key bindings/sequences. Then it will probably be as if the cursor is directly connected to my mind. I'm hopeful because I've seen a mentor of mine do it.

1
puppyreply
lemmy.world

I don't think you understood what I said. I started using vim key bindings ALSO in my IDE and my speed improved because of it. I didn't ask you to stop using vi. I merely suggested that you used MORE of it. If your Emacs setup already use vim keybindings that's exactly what I'm doing too.

2
puppyreply
lemmy.world

Awesome! How did you get them in the shell and browser? Now I am also curious.

2
sh.itjust.works

Meanwhile webstorm/intelliJ users:

signature look of superiority

empty wallet

35
lemmy.ca

Emacs sucks. Vim is so much better. And vscode is okay.

Go ahead. Down vote me. I don't care. This isn't Reddit lol.

23
lemm.ee

You guys recommend VSCodium over VSCode. Is there a working sync solution similar to the one built into VSCode where you can sync all settings and extensions between machines?

16

I generally code in VSCode, and manage org-roam notes and information in Emacs. Works well enough for me.

15

I guess I just preferred VSCode for coding? Every time I've tried to use Emacs for my coding workflows I've given up, I think I'm just used to VSCode in that respect. It is weird, I know.

2