Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 was messing with by profile and ended up deleting /usr/share/vim folder and everything in it. How can I get this folder back?

sudo aptitude reinstall vim

did not help

basically I would want vim and gvim to be back to 'factory settings' ...for this i'll need original .vimrc as well

share|improve this question

closed as too localized by Luis Alvarado Mar 14 '13 at 17:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Delete/backup all the files for vim under /home/youruser. If you use it as root, under /root as well. I recommend a .tar backup. Then run:

sudo apt-get purge vim

Finally run:

sudo apt-get install vim

That should do it.

share|improve this answer
I tried this but it says 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. – Costa Feb 4 '13 at 21:11

The /usr/share/vim folder has files from vim-runtime, vim-common, vim-gui-common and vim-tiny packages. Reinstall them all.

share|improve this answer