Re:Unix as a tool forge (and how Emacs fits in Unix philosophy)
by BlueTemplar on Tuesday November 08, 2022 @04:43PM
(#33524702)
Why vi vs vim ? (I have no experience with vi, only vim.)
[ Parent
| on HN ]
Re:Unix as a tool forge (and how Emacs fits in Unix philosophy)
by jrumbut on Tuesday November 08, 2022 @05:07PM
(#33524971)
In vim there are a lot of emacs-like plug-ins that reimplement functionality found elsewhere.
You can still use the vi style workflow though.
Re:Unix as a tool forge (and how Emacs fits in Unix philosophy)
by shagie on Tuesday November 08, 2022 @05:48PM
(#33525361)
vim is the improved version of vi, which is the visual interface to ex, which is the extended editor ed... the one true editor ( https://www.gnu.org/fun/jokes/ed-msg.txt )
You will not infrequently find vim and vi links to the same executable.
/usr/bin % ls -l ex vi vim
lrwxr-xr-x 1 root wheel 3 Aug 24 03:59 ex -> vim
lrwxr-xr-x 1 root wheel 3 Aug 24 03:59 vi -> vim
-rwxr-xr-x 1 root wheel 5155568 Aug 24 03:59 vim
The difference between which way you have argv[0] slightly changes the functionality... but it's the same thing.ed remains its own thing.
/bin % ls -l ed
-rwxr-xr-x 1 root wheel 235296 Aug 24 03:59 ed
THE MIGHTY ED HAS SPOKEN!!!?
Re:Unix as a tool forge (and how Emacs fits in Unix philosophy)
by mrlemke on Tuesday November 08, 2022 @06:07PM
(#33525515)
To expand on shagie's answer, vi is a separate utility except when it's not (f.g. Linux vi is usually a minimal vim build running in vi-compatible mode). For a more pure taste of vi, install nvi or use vi on *BSD.