Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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? –  hvtuananh 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/… –  hvtuananh 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

1 Answer 1

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

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.