vim command does not work
18,822
Yes, it comes by default. Your mistake is that you think you should type vim
to launch it. Just type vim
and press Tab, and you will get the command vim.tiny
, which is the correct command.
If you need to run VIM by vim
command, you should install vim
package:
sudo apt-get install vim
You can read more about differences between them in What features does vim-tiny have?
Related videos on Youtube
Author by
faizal
Updated on September 18, 2022Comments
-
faizal over 1 year
I am trying to open
vim
on my Ubuntu 14.04 64 bit by entering the command in the terminal :vim
But i get the response :
The program 'vim' can be found in the following packages: * vim * vim-gnome * vim-tiny * vim-athena * vim-gtk * vim-nox Try: sudo apt-get install <selected package>
But i assume( wrongly?) that vim comes by default in the distro. I confirm this by checking the installed packages :
dpkg --get-selections | grep -v deinstall > ~/Desktop/packages
It lists
vim-common
andvim-tiny
.So why doesn't vim open up? On the other hand, if i enter the command
vi
, it opens upvim
invi
compatible mode.-
Pandya over 9 yearsVisit : stackoverflow.com/q/1159206 Aslo askubuntu.com/q/281886
-
-
faizal over 9 yearsInterestingly, the
vi
command used to open up vim in compatibility mode. Now after installing vim, thevim
command works, butvi
andvim.tiny
now opens up the newly installedvim
as well. I guess i have lost the defaultvi
andvim.tiny
editors that came with the Ubuntu distro. -
grantbow over 9 yearsdefault
update-alternatives
command modifies symbolic links in /etc/alternatives. The way the packages install by default might have changed. -
neuronet almost 8 yearsThis begs the question...why is it like this? Or, more briefly...WTF?