[SOLVED] Getting VIm back to the way it was after a fresh install
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Getting VIm back to the way it was after a fresh install
Hi all!
I'm afraid I've messed my VIm installation on Ubuntu 11.10 up pretty badly. I've tried to uninstall and purge VIM, gVIM and then to reinstall them, but this did not have the desired effect. I have also tried to re-install vim-runtime, but also without success. (Tab completion of filenames used to work in gVIM, but no longer does. There was also a vim-current [I think] directory in /usr/share/vim, which is no longer there.)
Is there any way I can get the VIm setup on my computer exactly the way it would have been after a fresh install?
The big question will be whether or not you made changes to ~/.vim*
If it's a user-setting reinstalling, purging, etc won't make a bit of
a difference to vim.
Cheers,
Tink
Hi Tink,
Ubuntu stores vim settings in /usr/share/vim. I was carefull to make backups of this. Are you saying I should be able to copy this back from where it came, and everything should be fine?
It's been a long night, I'll try that tomorrow night and give feedback.
Regards,
JB
My apologies for the misunderstanding - I should have had some sleep before I replied. I think I may still have the file, but I'll make sure tonight.
Would it be at all possible to use something like http://www.ubuntuupdates.org/package.../main/base/vim to get everything back to a clean slate? I downloaded the deb packages yesterday evening, but I could not open it with the Ubuntu Software Manager.
My apologies for the misunderstanding - I should have had some sleep before I replied. I think I may still have the file, but I'll make sure tonight.
Would it be at all possible to use something like http://www.ubuntuupdates.org/package.../main/base/vim to get everything back to a clean slate? I downloaded the deb packages yesterday evening, but I could not open it with the Ubuntu Software Manager.
Thanks for all the help!
Regards,
JB
Not if you modified your private vim setup in your home.
vim gets used by all users on the system, but each user has his personal settings in the .vimrc in each $HOME directory. If you have that file, try renaming it, or deleting it. In the absence of any such file, the default vim behavior will occur.
--- rod.
Thanks for all the replies, guys.
I installed a couple of packages, as detailed in the link below, and everything seems to be working as expected, more or less.
I'm going to spend some time figuring out how to put my vim config in github, and begin using pathogen, to avoid this situation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.