My first post on
unix.stackexchange.com. Please, don't just react by the title of this post as I'm not jumping in having not researched what I'm asking for.
However, right now, I'm doing a bit of in-depth Linux course (want to learn this OS better), and The Linux Foundation instructor says, that:
usually, installed program on the distribution is Vim, and Vi just links to it as an alias.
This seems plausible, as disregarding of whether I open vi or vim from my terminal, absolutely identical welcome screen launches, with identical software name, version, author and etc..
However, which vim and which vi print different files from
So, I'm really confused, because on one hand a lot of people speak that Vim is a superset of Vi, but on the other hand, the course I'm doing now says, that it's both Vim, and opening vi or vim, actually, almost(as they show up as identical software but behave differently) proves it.
Why people say, that Vi and Vim are two different programs and that Vim is a superset of Vi? as they even have identical welcome screen and version numbers, at least, on CentOS 7;
or maybe Vi is an alias of Vim specifically on CentOS 7 (which I'm using now) and usually (on other OSes) they are two different programs? but then again, they are two different binaries.. but they have absolutely identical welcome screen, which is really confusing;
If they are not different, why opening my
.javasource file is highlighted when I open it with vim and - is not, when I open it with vi?
I'm sorry if this text is a bit mashed up, but that is exactly what confuses me, as well, and what is the whole information I have gathered and observed.
They seem to be same (also are claimed by the instructor), but they are told to be different (on different forums) and they actually behave (this java file case) and show up (with which) as different.
So, what shall I understand from this?
As asked to do,
vi --version and
vim --version output this:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2020 16:43:23) Included patches: 1-207, 209-629 Modified by <firstname.lastname@example.org> Compiled by <email@example.com> Small version without GUI. Features included (+) or not (-):
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2020 16:44:08) Included patches: 1-207, 209-629 Modified by <firstname.lastname@example.org> Compiled by <email@example.com> Small version without GUI. Features included (+) or not (-):