Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-18-2011, 05:45 AM
|
#1
|
LQ Newbie
Registered: Feb 2011
Posts: 5
Rep:
|
Personalising vim after fresh install
Hi,
I am having trouble getting my vim settings back after having made a new install of my GNU/Linux distro. I have a copy of my old .vimrc file and a complete recursive directory copy of my old .vim directory.
I have placed the copy of .vimrc and the directory .vim at /home/me/, but I am eg. unable to use my old color files now in /home/me/.vim/colors/
Hints ?
|
|
|
02-18-2011, 06:29 AM
|
#2
|
Member
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189
Rep:
|
Are any of the settings from your vimrc taking effect or is it just the colour that's a problem?
Could you post a copy of your vimrc file. You should have a reference to
Code:
colorscheme [name of colorschene]
Last edited by redgoblin; 02-18-2011 at 06:30 AM.
|
|
|
02-18-2011, 06:57 AM
|
#3
|
LQ Newbie
Registered: Feb 2011
Posts: 5
Original Poster
Rep:
|
Hi again,
it seems that there is only trouble with colours. Other things in my .vimrc like abbreviations do work. I do have the line
Code:
colorscheme zenburn
in my .vimrc but it has no effect and when I do
Code:
:color nameOfScheme
from within .vim I dont get the appropriate results (sometimes depending on what scheme there is change to the colours/highlighting but not the expected ones !)
|
|
|
02-18-2011, 07:40 AM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
You mention a new install, does that also mean you have a newer vim version? If so did you look for and change entries that possibly still point to the old vim version? Example:
/usr/share/vim/vim70/syntax/syntax.vim vs /usr/share/vim/vim73/syntax/syntax.vim
Also, where does runtimepath point to? (:set runtimepath).
Hope this helps.
|
|
|
02-18-2011, 10:12 AM
|
#5
|
LQ Newbie
Registered: Feb 2011
Posts: 5
Original Poster
Rep:
|
:set runtimepath shows
Code:
runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/
vim72,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
I am not completely sure, but I think it is still the same major version (7.2) as before i installed a new distro. What files related to vim would be candidates to include in them a hardcoding of the version number ?
|
|
|
02-18-2011, 10:49 AM
|
#6
|
LQ Newbie
Registered: Feb 2011
Posts: 5
Original Poster
Rep:
|
I tried adding a new colour scheme newScheme.vim in /usr/share/vim/vim72/colors/ (added permissions to other for x and r)
and starting vim. The scheme shows up from within vim when toggling using :color, but it has no effect.
|
|
|
02-18-2011, 11:11 AM
|
#7
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
I've just downloaded this zenburn theme and tried it on vi versions 7.0, 7.2 and 7.3 (LFS and Debian) as a normal user and it does not work on my side on Debian.
Ok, this fixed the problem for me: export TERM=xterm-256color.
Weird thing is that LFS has TERM set to xterm and it works, Debian also has it set to xterm and it doesn't work (it does when setting the xterm-256color).
Hope this helps.
|
|
|
02-18-2011, 12:11 PM
|
#8
|
LQ Newbie
Registered: Feb 2011
Posts: 5
Original Poster
Rep:
|
Thanks for the new tip, druuna. It didn't change things, however trying yet another color scheme, vim displayed a message
asking to
in my .vimrc and this made all the colour schemes work.
|
|
|
02-18-2011, 12:46 PM
|
#9
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
I was still interested and just found this, which confirms both our solutions (just noticed you already found the alternative): the The Official Zenburn Page (see the Notes).
Have a nice weekend.
|
|
|
All times are GMT -5. The time now is 05:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|