I am running Ubuntu 13.04 and I assumed that vim comes by default. There is a /etc/vim on my system (assuming it refers to the same thing). However, I was unable to do a vim abc.txt. Instead, I got a reply stating that vim is not recognized. Please refer to the following and provide me a solution.
rahul@hpdv6:~/Downloads/VIM/vim64/src$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'vim' has no installation candidate
rahul@hpdv6:~/Downloads/VIM/vim64/src$
Thanks in advance.
apt-cache search ^vim
shows nothing.rahul@hpdv6:/usr/bin$ /usr/bin/vim abc.txt bash: /usr/bin/vim: Too many levels of symbolic links
rahul@hpdv6:/usr/bin$ sudo update-alternatives --config editor There are 2 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ------------------------------------------------------------ * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode Press enter to keep the current choice[*], or type selection number:
sudo apt-get install linux-doc
and that seems to work.