Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a new user in linux. The problem is that when i tried to run the VI (or vim) text editor, i realised that it worked really different as i remembered it used to. Example, when i try to put in mode of "insert", in the downside doesn't appear "INSERT", or when i try to delete with the backspace key, it doesn't delete... it moves the cursor back, and does nothing.

So i thought that removing it and re-installing it again would work, and removed it by:

apt-get --purge remove vim-common

But now when i try:

apt-cache search vim

it throws nothing, and now i don't know how to install it again. Any help? thanks people

share|improve this question
    
how about apt-get install vim? – tuananh Aug 23 '13 at 16:42
    
t threw 'E: Unable to locate package vim'. Also, when i try 'apt-get update', it updates some things, and others throws "404 not found". Anyway, it doesn't work when i try again with 'sudo apt-get install vim... Thanks!! – Gerardo Aug 23 '13 at 16:47
    
You might need to switch to another software repository. Read more about it here: (I assume you're using Ubuntu. Debian is almost the same) help.ubuntu.com/community/… – tuananh Aug 23 '13 at 16:52
    
Can you post the contents of /etc/apt/sources.list? – Joseph R. Aug 23 '13 at 16:54
    
mmm the problem is that the contents.. occupy around 2500 characters and it's too long for an answer here... what should i do? – Gerardo Aug 23 '13 at 17:19

sudo apt-get install vim should do it.

share|improve this answer
    
it threw 'E: Unable to locate package vim'. Also, when i try 'apt-get update', it updates some things, and others throws "404 not found". Anyway, it doesn't work when i try again with 'sudo apt-get install vim... Thanks!! – Gerardo Aug 23 '13 at 16:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .