Sorry maybe I’m dumb. But does this mean VIM and Obsidian are Vi?
The comments on this post went exactly like they have over the past 20 years, with one exception.
Emacs is all but forgoten.
Vim wins.
I think there’s a good reason for that. If you’re not as concerned about resource consumption (Emacs used to be called “Eight Megabytes and Constantly Swapping”, back when 8MB was a lot), then there’s no reason to avoid even more complex and resource intensive IDEs. People who wanted a complex editor, but in a relatively small footprint, stuck with some variant of vi.
Thus, vi found a stable evolutionary niche. It’s a tardigrade.
Recently, I recommended to a friend that basic vim/vi is worth learning because it’s a baseline that you can always trust will be there across different Linux systems.
They asked me what I used most on my home system, and the answer was emacs, but I was very clear that I was not recommending it. It’s a particular kind of person who finds themselves at home in emacs, and for everyone besides those people, selling them on emacs would feel like persuading them to do hard drugs.
Didn’t even macs have vi?
Basically every Unix-derived OS comes with vi. Emacs came out in 1976, macs didn’t exist until 1984.
Yes and it’s better than TextEdit that is bundled with MacOs
you have offended all 6 of us, prepare for retribution
Well, “vi is love” is something I always see as “masochism is related to sex”.
How would you categorize masochism as not sex? :o
Everything is sex, except sex, which is power
- Not Oscar Wild
Bro you forgot the ‘m’ at the end of vi
And the i, c, r, and o. In fact keep the vi.
Op, what do you find more offputting: emacs or neovim?
We don’t want a viditor, we want an editor. Why? Because ed is the standard!
On the system I administrate,
vi
is symlinked toed
administrate
Mike Tyson?
Ah, nice one! Didn’t realize it could even be done.
It isn’t as dumb as it sounds, honestly! I used to use DBeaver and it is a fantastic project, but I really wanted Vim keybinds to construct my queries as they can sometimes be quite large. There used to be a plugin that added the functionality but it stopped working on my machine. This Vim plugin is essentially a wrapper for the CLI SQL client (psql in my case), so using it actually kind of makes sense, I think.
The biggest issue I faced was exporting the results, but I just created a function in my ~/.vimrc that copies all the text of the results to a new tab and formats it however I want. CSV, HTML, JSON, XML, Markdown, whatever I need is all there and predefined. All I have to do is call
:ExportToMarkdown
and off I go.
What makes 6 so popular?
Because vii viii ix
LXIX my balls! Haha got’em.
Believe it or not, this is the second time I got to make that joke within an hour.
* laughs in Latin *
Emacs
(ducks)
I use vi from an Emacs Shell, which was spawned from an Emacs GUI.
bro tryin’ to summon a demon… /s
Emacs is what the unified linux desktop should be
link the vi command to emacs, and you’ll be able to say you use vi
you’ll be able to say you use vi
I haven’t wanted to say that in the 32 years I’ve had the choice.
oh ok then link the emacs command to vi and you’ll be able to keep saying you use emacs while using a better text editor 👍
(please dont kill me this is a joke i dont even use vi please have mercy please spare me please please please)
No
EMACS. It’s the superior text editor.
This is the way.
Vi hasn’t been updated since 2005. Aren’t everyone just using vim or neovim?
Not to imply that Vi is perfect, but Vi is perfect. What do you need an update for? /s
I use whatever the machine gives me when I type
vi
, I assume it’s usually vimHuh,
vi
for me has always been actual vi, not vim. Didn’t know some systems symlink vi to vim.A long time ago, someone posted advocating symlinking
vi
toemacs
. Evil, but entertaining.vim has a limited “vi-mode” that it uses if you call it as vi. so it could still be vim.
Ohh that makes more sense. Yeah perhaps, although come to think of it I still need to install vim from the package manager even if vi works fresh out of the box so maybe not?
i think there’s also a
vim-mini
that gets installed by default in some debian-based distros.
Vim is the preferred experience, so it’s for end users. Unless you have a system with no real addons and classic *nix environment, you’re almost always going to be using Vim. Alpine linux is a good example of a stripped down environment that still uses Vi.
Editing excel spreadsheet? VI
Excel files (.xlsx) is just an archive of some XML files and whatnot, so sure you could edit them in vim.
Though I’d rather edit them in CSV format
Java? vi!
COBOL? vi!
SVG? Believe it or not, vi!/s
SVG, unironically yes. There’s a few times where I found a library or WYSIWYG editor making some strange choices for its SVG output, and I had to fix it manually.
BMP? vi and control-v!
WAV? There’s probably a plugin for that!
Everyone at work is using Cursor these days, except for me using neovim and my emacs loving coworker. When we present during pair programming our coworkers go nuts over watching our workflows and trying to figure out if they can do similar things in Cursor lol.
What is Cursor, another AI-infested slop?
It’s a version of VSCode with deep AI integration. I’ll say, it’s pretty good from a workflow perspective. But I just use Avante to similar effect.
tbh they probably can, it’s just more
ctrl
involvedProbably!
Neovim and emacs are both incredibly heavy. I would rather just use something like VScodium.
Nano and Vim are small and quick.
I would like you to open the same file in neovim, Emacs, and vscodium and see the ram usage.
Matter of fact I’ve done this for you (230 line json):
heavily customised emacs: 34 MB
heavily customised neovim: 32 MB
Newly installed vscodium: 300 MB+both emacs and neovim have syntax highlighting, completion, mouse support, terminal support, window management, and so on
Debugger?
Yea they can attach to debuggers via dap
great
in highschool my physics teacher used vim to write stuff, like most times when checking if everyone was in class he’d just open vim and type people’s name in there
I know this is supposed to be a joke. But, VI is awful, and i can’t believe anybody would use that over a modern editor. But, I know some people who like it.
Literally the only thing I code in at work. Have done so for decades.
Can’t stop, won’t stop.
how do you tolerate the 0 and $ to jump to the ends? it’s so painfully inconvenient and made me switch to helix where it’s g->h and g->l. do you not use the default keymap?
you can change that if it bothers you
yeah ik, I’m just curious about how people deal with it
Most nvim users I know have their setup very much customized. That takes time, effort and is a pita. But afterwards you have a tool that just works like you want it to work, and is super fast (at least compared to VSCode).
I don’t understand why you compare it to vs code, it’s not a text editor and besides, it has vim too?
They’re both code/text editors, or what would you call VSCode instead? An IDE? you can make an IDE out of nvim if you want.
Yes, there is a vim mode in VSCode, but in some cases it can be very slow (like editing a few thousand columns at once), and is not as tightly integrated.
Shift-A and Shift-I to append at the end or insert at the start.
Once you know the system, it’s much easier to do everything without having to take your hands off the keyboard to use a mouse.
Muscle memory mostly. I miss vim keybinding when I have to type in anything else, including Lemmy.
For me, it’s that it is shorter to type 0. Also I cannot somehow recall 2 letter commands
You could also do
I
orA
followed byesc
for the same effect.Most often though I use
/
or?
to just go specifically where I want.
Yeah, it’s a dinosaurs tool for people who refuse to adapt to new stuff.
Imagine thinking modern IDE are more efficient than vi 😯
Curser is more intuitive, I agree, but you will never win a code race against similar skilled coder on vi…
Coding isn’t a race, it’s a team sport. And if you think its not, you’re in the wrong profession.
Umm, there are regularly coding race events here where I live…
Coding can be hobby as well, you know.
Not all of this world is pure capitalism, some have some free time doing stuff they want how they want.
Coding is not my profession (right now)
If you value it as a hobby, don’t make it that again :)
Modern “vi” is typically a symlink to vim, and as long as compatibility is disabled it’s very useful; especially when working over ssh or quick and dirty config editing that doesn’t warrant a full blown ide to be started up.
Nano is for that purpose
It is a pain for larger files. It small and light but doesn’t have the same featureset.
Nano is for people that are too lazy to learn vi if they much time (ergo not needing it)or have too less time to learn it (even tho, they would get so much time back in return, if they would learn vi)
This applies only to people that regularly work with GUIless headless machines
Okay I kinda get it if you regularly write scripts or configs on headless machines, though even then I’d think using just vscode remote development plugin would be my tool of choice.
Usually I use nano if I just need to do a quick change to a file, or even on my personal device if it requires sudo (such as apt sources or fstab) and I do it just once so don’t bother thinking how to use sed for it
I prefer vim, but vi is nice too. (I miss Vimperator for Firefox)
It’s just so fast when you get it down. It works well with a cli-only work flow. Why use mouse when type very fast?
There’s immense pleasure and honor in writing C the way our ancestors did.
Why use mouse when type very fast?
Vim actually has pretty good mouse support too if you turn it on!
If you liked vimperator, you might like https://qutebrowser.org/
it’s not everyone’s cup of tea, and that’s fine. It’s not awful though. Arcane, yes. very powerful? also yes.
Most people just use vim