LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 06: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, 07:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
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, 08: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, 08:25 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
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, 09:36 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Thx chrism01 ;}



Cheers,
Tink
 
Old 03-13-2012, 09:40 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
no worries
 
Old 03-14-2012, 02: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, 02:03 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
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, 05:30 PM   #9
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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, 09: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 12:46 PM
[SOLVED] Vim: getting back and forth between two files. stf92 Linux - Newbie 8 12-15-2010 06:57 PM
VIM question: can I stop <Esc> moving the cursor back? xlq Linux - Software 9 06-03-2007 11:46 AM
I'm back with kernel 2.6 and a fresh install jolphil Debian 14 03-09-2005 04:21 PM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 02:03 PM


All times are GMT -5. The time now is 07:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration