3 ms·
On many systems vi is a link to vim. My ubuntu laptop for example: $ which vi /usr/bin/vi $ file /usr/bin/vi /usr/bin/vi: symbolic link to /etc/alterna
by isostatic 8y ago
On many systems vi is a link to vim. My ubuntu laptop for example:
$ which vi
/usr/bin/vi
$ file /usr/bin/vi
/usr/bin/vi: symbolic link to /etc/alternatives/vi
$ file /etc/alternatives/vi
/etc/alternatives/vi: symbolic link to /usr/bin/vim.nox
One thing that springs to mind, I don't believe native vi supports ":split"? Does it do syntax highlighting?
The manpage on my laptop says
There are a lot of enhancements above Vi: multi level undo, multi windows and buffers,
syntax highlighting, command line editing, filename completion, on-line help, visual
selection, etc.. See ":help vi_diff.txt" for a summary of the differences between Vim
and Vi.
Full list at https://github.com/vim/vim/blob/master/runtime/doc/vi_diff.txt https://github.com/vim/vim/blob/master/runtime/doc/vi_diff.t... (which has nice syntax highlighting in vim)
- 3chelon 8y agoThanks. They're distinct editors on macOS which I'm currently using. And no, vi doesn't have syntax highlighting so perhaps that's a big enough reason right there...
- lloeki 8y ago> They're distinct editors on macOS which I'm currently using Nope, they're one and the same, from Mavericks† to Mojave: $ ls -l /usr/bin/vi lrwxr-xr-x 1 root wheel 3 24 Jul 10:56 /usr/bin/vi -> vim `vi` merely starts `vim` in compatible mode (see `:help compatible`) † I actually booted a fresh Mavericks VM just to be sure, but I'm quite certain it's also the case way back to at least Tiger (which is the first OS X I ever had)
- 3chelon 8y agoWow I did not know that, thanks for enlightening me!