Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am unable to install Vim and need help. I've tried the following:

root@cbitlab1:/home/cbitlib1# sudo -s
root@cbitlab1:/home/cbitlib1# 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

How do I fix this - I'm on 14.04.

share|improve this question

2 Answers 2

  1. apt-get update to make sure you have the latest sources.list
  2. apt-get install vim
share|improve this answer

Vim is pre-installed in Linux based OS. For Ubuntu it minimal version is pre-installed.

vim.tiny

You can create alias to run it as vim

alias vim=vim.tiny

To make that alias permanent,

gedit ~/.bashrc

Add "alias vim=vim.tiny" line in .bashrc file

For more on how to make alias permanent How do I create a permanent Bash alias?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.