this post was submitted on 02 Feb 2024
1 points (66.7% liked)

Programmer Humor

32386 readers
649 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
top 18 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 9 months ago (1 children)

I used to use a lot of nvim but actually went to Jetbrains now at work... It's just a lot easier to work with for teams.

[–] [email protected] 0 points 9 months ago (1 children)

Can you not get an nvim extension? There's one for Vscode that works very well and even uses your existing nvim config

[–] [email protected] 0 points 9 months ago (1 children)

What does it carry over from your swim config? What are the benefits of using Nvidia inside of VSCode as opposed to just nvim?

[–] [email protected] 0 points 9 months ago (1 children)

You get everything Vscode does, vscode's LSPs, vscode's element rename/jump to definition (which I realise nvim has but I can't get it to work properly and code does it out of the box), live share sessions, built in split panes and git integration etc etc

It carries over everything as far as I can tell (besides the graphical changes obviously), motions, plugins, shortcuts

I'm sure you can achieve most things Vscode does in neovim but using Vscode/ium and nvim is a massive shortcut

[–] [email protected] -1 points 9 months ago (1 children)

Honestly it seems like you gain nothing but a slightly bloated electron wrapper around NeoVim.

All those features you listed either work out of the box or require minimal configuration in NeoVim.

[–] [email protected] 1 points 9 months ago

As far as I'm aware none of the things I mentioned work out of the box in neovim (jump to definition does but only within the same file which is kinda useless for me

[–] [email protected] 0 points 9 months ago (3 children)

This is bound to be an unpopular opinion here but I hate vim.

Shortcuts in vim make no sense whatsoever. They’re not the fastest possible shortcuts nor are they intuitive.

Sure it’s got useful features if you let the awful design brow beat you into memorising an absurd number of shortcuts that lack any form of logic.

You could have a cheat sheet on another monitor but at that point why not have an editor that has a gui.

[–] [email protected] 1 points 9 months ago

You can change shortcuts

[–] [email protected] 1 points 9 months ago

The reason is b/c vim predates GUIs. Yes, as in all of them:-D. (Or rather, its predecessor vi did and vim unlike others very much remained true to its origins)

Even now, there are many places e.g. when doing server maintenance or accessing a compute cluster via SSH, sometimes you do not have a handy GUI environment accessible, at which point your choices become extremely limited, and it helps that vim has been installed on every Unix-i/Linux-ish machine since the 80s.

GUIs are superior, ofc, when they work. On a daily basis I even use a GUI for vim - MacVim (for Windows there used to be Cream but I am very out of date there), and there is always gVim. I could use something else but I am familiar with vim and it is EXTREMELY powerful - e.g. I could indent 100,000 lines in the middle of a file without having to manually select all of them at once first, or better still only do the indentation based on matching a pattern.

It is very advanced, and thus not for everyone, and even those of us that use it often prefer the GUI way for simple tasks like select a contiguous block of 5 lines, but it offers the benefit that it works in the widest possible number of scenarios - e.g. more than nano. emacs does too, except its commands are so configurable that the X-windows GUI number 1, X-windows GUI number 2, and command-line versions all use entirely different shortcuts, so a cheat sheet would not help. vim offers consistency that, afaik, is absolutely unmatched anywhere.

Now you know:-).

[–] [email protected] 0 points 9 months ago (1 children)

I was shoved into Linux by a nearly dead HPC expert who was definitely angry about the advent of electricity.

Wasn't given any indication of a text editor, I ran across vim for one reason or another and enjoyed his Palpatine-like reaction from seeing me using vim enough to keep using it. And if you're enjoying something, why not

But yeah, it has some drawbacks lol

[–] [email protected] 1 points 9 months ago

Having a mentor like this is unfathomably valuable. The kind that knows exactly when a printer problem should be fixed with a sledgehammer and are not afraid to apply the “fix”.

[–] [email protected] 0 points 9 months ago (1 children)

Someone here will know—why shouldn’t I use nano.

[–] [email protected] 0 points 9 months ago (1 children)

If it works for you. Go ahead

[–] [email protected] 1 points 9 months ago

But I must be stopped!

[–] [email protected] 0 points 9 months ago (1 children)
[–] [email protected] 0 points 9 months ago (1 children)

Go sit in a corner and think about what you've done

[–] [email protected] 0 points 9 months ago (1 children)

I will and I will exit nano easily