I compiled and installed vim according to these instructions https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source

But After installing I deleted the source directory So,How do I uninstall vim now ?

I am using Ubuntu 13.04


To uninstall vim, you can just download again the sources and run in the source directory :

make VIMRUNTIMEDIR=/usr/share/vim/vim73
sudo make uninstall

replacing /usr/share/vim/vim73 by the one you used for installation.

  • i did just that .But it didn't remove vim .I can still use vim.Here is the output when i run sudo make uninstall paste.ubuntu.com/5903278 – ka4tik Jul 23 '13 at 7:54
  • @ka4tik indeed, you need to set again the VIMRUNTIMEDIR variable. I'll edit my answer. – Levans Jul 23 '13 at 7:58
  • that did't work either paste.ubuntu.com/5903309 – ka4tik Jul 23 '13 at 8:07
  • @ka4tik and if you run all the same steps as for installation, by replacing make install by make uninstall, and also not using sudo for make VIMRUNTIMEDIR=..., as in the doc you supplied ? – Levans Jul 23 '13 at 8:17
  • Also works for Ubuntu 14.04. Thanks! – marcelocra Dec 22 '16 at 1:07

You have to run make distclean before make VIMRUNTIMEDIR=...

cd ~/tmp
hub clone vim/vim
cd vim
make distclean <---
make VIMRUNTIMEDIR=/usr/local/share/vim/vim80
sudo make uninstall

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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