LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-13-2012, 05:50 PM   #1
JohanB
LQ Newbie
 
Registered: Nov 2010
Posts: 9

Rep: Reputation: 0
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?

Your help is much appreciated!
 
Old 03-13-2012, 06:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 03-13-2012, 07:16 PM   #3
JohanB
LQ Newbie
 
Registered: Nov 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
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
 
Old 03-13-2012, 07:25 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,344

Rep: Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746
Actually he's referring to
Code:
~/.vim*
which refers to your home dir ('~') and hidden files (those begin with '.')
Use
Code:
ls -a
a = all to see them.
Your personal settings (as opposed to global defaults which is what you talk about) are typically stored in a file called
Code:
.vimrc
in your home dir.

HTH
http://www.vim.org/
 
1 members found this post helpful.
Old 03-13-2012, 08:36 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Thx chrism01 ;}



Cheers,
Tink
 
Old 03-13-2012, 08:40 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,344

Rep: Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746
no worries
 
Old 03-14-2012, 01:43 AM   #7
JohanB
LQ Newbie
 
Registered: Nov 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Actually he's referring to
Code:
~/.vim*
which refers to your home dir ('~') and hidden files (those begin with '.')
Use
Code:
ls -a
a = all to see them.
Your personal settings (as opposed to global defaults which is what you talk about) are typically stored in a file called
Code:
.vimrc
in your home dir.

HTH
http://www.vim.org/
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
 
Old 03-14-2012, 01:03 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by JohanB View Post
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.
 
Old 03-14-2012, 04:30 PM   #9
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
Old 03-17-2012, 08:11 AM   #10
JohanB
LQ Newbie
 
Registered: Nov 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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.

http://askubuntu.com/questions/4672/...ck#answer-5789
 
  


Reply

Tags
apt-get, ubuntu 11.10, vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Personalising vim after fresh install Mig42 Linux - Software 8 02-18-2011 11:46 AM
[SOLVED] Vim: getting back and forth between two files. stf92 Linux - Newbie 8 12-15-2010 05:57 PM
VIM question: can I stop <Esc> moving the cursor back? xlq Linux - Software 9 06-03-2007 10:46 AM
I'm back with kernel 2.6 and a fresh install jolphil Debian 14 03-09-2005 03:21 PM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration