Linux - SoftwareThis 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.
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.
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/
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 !)
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).
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 ?
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.
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).
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.