You are not logged in.
After the vim upgrade to vim-7.2.245-1 I lost all syntax color highlighting (I've checked Python, Erlang and shell files). Even :set syntax=python doesn't do anything.
There was nothing about this mentioned in the Arch news? Do I miss something??
EDIT: SOLVED! see post #7
Last edited by damjan (2009-09-14 13:28:06)
Offline
Have you checked your .vimrc (and /etc/vimrc)?
Offline
Have you checked your .vimrc (and /etc/vimrc)?
/etc/vimrc is from the package I don't know what to check there. My own ~/.vimrc is just:
set mouse=
set tabstop=8
set expandtab
set softtabstop=4
set shiftwidth=4
set textwidth=79
Offline
Haven't updated yet but this might have something to do with it:
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
I saw this - thought it might apply in your case:
Offline
Might you be using the vi command instead of vim? I ask because the latest update replaced vim's vi with the simpler ex/vi, which does not do syntax highlighting and all the other fancy vim stuff.
Offline
I just added "syntax enable" in my ~/.vimrc and all is good ... it seems that was in /etc/vimrc by default previously?
That "news" update was not very helpfull though.
Offline
Hadn't updated yet, damjan, so I really didn't know if it effected it. Perhaps, I can be of more use to you
Here's my vimrc if you need for reference:
http://www.archive.org/download/vimrc/vimrc.zip
Last edited by Gen2ly (2009-09-14 04:55:27)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
The same problem here. Curiously, there's no ~/.vimrc for me at all; /etc/vimrc contains nothing but comments.
UPD:
Copying /usr/share/vim/vimfiles/archlinux.vim to /etc/vimrc and adding syntax enable line to /etc/vimrc does the trick for me.
Last edited by Llama (2009-09-14 06:52:18)
Offline
I am using vi (not vim) and besides the syntax highlighting the cursor behaviour has changed, i.e. backspace does not work as before anymore. If such change to the package is being made at least some tips/warnings would be nice! I second damjan: That "news" update was not very helpfull though. - Not at all!
Offline
Hi,
I'm a french user of archlinux.
I have the same probleme here with vi since upgrade
backspace does not work.
the key → write a 'C' in the file.
don't need to hit 'i' to insert. I'm directly in insertion mode after openning the file.
Edit :
After looking /var/cache/pacman/pkg, it seems to have a probleme with this package
$ du -sh /var/cache/pacman/pkg/vi-*
140K /var/cache/pacman/pkg/vi-050325-1-i686.pkg.tar.gz => new version
8,2M /var/cache/pacman/pkg/vi-7.2.65-1-i686.pkg.tar.gz => latest version
From 8.2M to 140K.... oO
Last edited by Aldevar (2009-09-14 07:59:56)
Offline
seems like the old vim package had its settings in /usr/share/vim, this one has the old subdirectories in /usr/share/vim/vim72
at least that's what vim told me when i tried to use my backup file :
Error detected while processing /etc/vimrc:
line 63:
E484: Can't open file /usr/share/vim/colors/delek.vim
Press ENTER or type command to continue
that same color file is inside the /usr/share/vim/vim72 folder..
"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"
Offline
Nevermind. Misread the post.
Last edited by bernarcher (2009-09-14 09:39:42)
To know or not to know ...
... the questions remain forever.
Offline
Hi,
I'm a french user of archlinux.
I have the same probleme here with vi since upgrade
backspace does not work.
the key → write a 'C' in the file.
don't need to hit 'i' to insert. I'm directly in insertion mode after openning the file.Edit :
After looking /var/cache/pacman/pkg, it seems to have a probleme with this package$ du -sh /var/cache/pacman/pkg/vi-* 140K /var/cache/pacman/pkg/vi-050325-1-i686.pkg.tar.gz => new version 8,2M /var/cache/pacman/pkg/vi-7.2.65-1-i686.pkg.tar.gz => latest version
From 8.2M to 140K.... oO
old vi package = vim
new vi package = The original ex/vi text editor
If you want to keep using vim, you have to install vim package and use vim binary.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
old vi package = vim
new vi package = The original ex/vi text editorIf you want to keep using vim, you have to install vim package and use vim binary.
Finally...I was wondering when that would happen, because the old vi package didn't make much sense
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
The same problem here. Curiously, there's no ~/.vimrc for me at all; /etc/vimrc contains nothing but comments.
UPD:
Copying /usr/share/vim/vimfiles/archlinux.vim to /etc/vimrc and adding syntax enable line to /etc/vimrc does the trick for me.
I don't think this change to vimrc is right at all.
The only thing you need to do is adding syntax on in ~/.vimrc for user-wide change or /etc/vimrc for system-wide change
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Yup. As Jasonwryan stated, I had this problem because my vimrcs were deleted. Just copied the example in /usr/share/vim72 .
The Wheel weaves as the Wheel wills, and we are only the thread of the Pattern."
—Moiraine Damodred
Offline
Yup. As Jasonwryan stated, I had this problem because my vimrcs were deleted. Just copied the example in /usr/share/vim72 .
are you sure about that ?
did you check all the files you had : ls /etc/vi* ?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Isengrin wrote:Yup. As Jasonwryan stated, I had this problem because my vimrcs were deleted. Just copied the example in /usr/share/vim72 .
are you sure about that ?
did you check all the files you had : ls /etc/vi* ?
Yes. Before the upgrade, as stated in http://www.archlinux.org/news/464/, I deleted /usr/bin/view and rview. Then pacman -syued, and after not having syntaxis or colourscheme, I ls /etc/vi* and ls ~/.vi*
Last edited by Isengrin (2009-09-14 15:47:24)
The Wheel weaves as the Wheel wills, and we are only the thread of the Pattern."
—Moiraine Damodred
Offline
Yes. Before the upgrade, as stated in http://www.archlinux.org/news/464/, I deleted /usr/bin/view and rview. Then pacman -syued, and after not having syntaxis or colourscheme, I ls /etc/vi* and ls ~/.vi*
I don't think that is normal , or is it ? I am not completely familiar with the changes that have been made to the vim packages.
Any chances you could paste your pacman.log somewhere, the part concerning the whole -Syu which broke things ?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
@shining
I'm not familiar with the logs, but I think you mean this:
[2009-09-13 20:53] synchronizing package lists
[2009-09-13 20:53] starting full system upgrade
[2009-09-13 20:59] upgraded hwdetect (2009.09-4 -> 2009.09-5)
[2009-09-13 20:59] upgraded ruby (1.8.7_p174-1 -> 1.9.1_p129-2)
[2009-09-13 20:59] upgraded transcode (1.1.3-1 -> 1.1.4-1)
[2009-09-13 20:59] upgraded vi (7.2.65-1 -> 050325-1)
[2009-09-13 20:59] Updating vi help tags...done.
[2009-09-13 20:59] upgraded vim (7.2.65-1.1 -> 7.2.245-1)
[2009-09-13 20:59] upgraded vim-colorsamplerpack (6.0-1 -> 6.0-2)
Nothing strange, I think.
The Wheel weaves as the Wheel wills, and we are only the thread of the Pattern."
—Moiraine Damodred
Offline
If you are the only one who ran into this problem, I still doubt there is a bug. Are you 100% sure you did nothing wrong ?
How did you delete view and rview ? Maybe you should check your shell history, to see all the commands you ran.
And which command did you use for the system upgrade ? pacman -Su ?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
@shining
The /usr/bin/view,rview issue has nothing to do with the problem of syntax highlighting.
I'm starting to have hard time understanding what are you guys talking about here. If you are talking different problems then maybe you should open another thread.
Offline
@Isengrin
your issue has indeed nothing to do with this thread, which was about losing syntax highlighting, not the whole /etc/vimrc
so please open a new thread
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Except the syntax highlighting, also the search highlighting and some other things don't work. Looks like /etc/vimrc is the issue, because reverting it to the previous one fixes everything. I suggest you replace the new one with the old one and it will be fine.
http://pastebin.com/f25d72a1f
Offline