this post was submitted on 12 Sep 2023
135 points (98.6% liked)

Linux

47231 readers
769 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 23 points 1 year ago (11 children)

I am surprised that vi is often available, but not vim. It's really annoying on many RHEL based distros, because I am so used to typing vim. Otherwise there is just git I deem essential.

[–] [email protected] 1 points 1 year ago (1 children)

Nowadays vi is just a symlink to vim.tiny, so you're actually running vim (in vi mode).

[–] [email protected] 1 points 1 year ago (1 children)

No. If you have vim installed that's true on many (some?) systems. As I said some distros have vi available, but not vim which is the annoying part.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

The original vi has not been maintained for many years. Most distributions, including Debian, Fedora, etc, use a version of Vim which (mostly) is similar to how Vi was.

From Fedoras wiki:
"On Fedora, Vim (specifically the vim-minimal package) is also used to provide /bin/vi. This vi command provides no syntax highlighting for opened files, by default, just like the original vi editor. The vim-minimal package comes pre-installed on Fedora."

From the vim-tiny package description on Debian:
"This package contains a minimal version of Vim compiled with no GUI and a small subset of features. This package's sole purpose is to provide the vi binary for base installations."

[–] [email protected] 2 points 1 year ago

R.I.P. Bram Moolenaar. You made me think of it when you said go is unmaintained. I went to vim.org to see who is taking over vim but the security certificate is expired.

It reminded me of this grim realization I had in my grandparents house. They were getting old, I think one or maybe both were in a nursing home by then. The house was falling apart as they were. I was going up the deck stairs and a stair broke under my foot, luckily one of the very low ones. Some dishes had some mold on them in the cabinet. And now going to vim.org, the cert is broken.

[–] [email protected] 1 points 1 year ago (1 children)

You are actually correct. I just checked the manifest of RHEL and it provides vim-minimal and not vi like I assumed.

I noticed that it behaves a bit different than the version available on AIX for example which for sure uses real vi, but I never gave it a second thought. Interesting.

[–] [email protected] 1 points 1 year ago

Also OpenBSD use different versions, I'm guessing their vi is the original since it can't handle utf-8. And iirc ex(1) is also a vim variant on Linux. I've never met anyone who actually uses ex though. ed(1) I think is just GNU ed. I am not certain about these versions though.

load more comments (9 replies)