Re:Famous Emacs Users (that are not famous for using Emacs)
by voltagex_ on Wednesday July 24, 2013 @01:59AM
(#6094714)
Interesting. What's the easiest way to check which vi binary I have?
[ Parent
| on HN ]
Re:Famous Emacs Users (that are not famous for using Emacs)
by a3n on Wednesday July 24, 2013 @10:28PM
(#6100575)
$ update-alternatives --display vi
vi - auto mode
link currently points to /usr/bin/vim.gtk
...
Or you could brute force it: $ ll $(which vi)
lrwxrwxrwx 1 root root 20 May 16 17:14 /usr/bin/vi -> /etc/alternatives/vi*
$ ll /etc/alternatives/vi
lrwxrwxrwx 1 root root 16 May 17 06:07 /etc/alternatives/vi -> /usr/bin/vim.gtk*
$ ll /usr/bin/vim.gtk
-rwxr-xr-x 1 root root 2391176 Apr 2 03:18 /usr/bin/vim.gtk*
vim.gtk is likely coded to behave differently depending on how it was invoked, as vim or vi for example.