You are not logged in.

#1 2009-09-14 03:32:19

damjan
Member
Registered: 2006-05-30
Posts: 454

After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#2 2009-09-14 03:45:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

Have you checked your .vimrc (and /etc/vimrc)?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2009-09-14 03:59:09

damjan
Member
Registered: 2006-05-30
Posts: 454

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

jasonwryan wrote:

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

#4 2009-09-14 04:20:01

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

Haven't updated yet but this might have something to do with it:

http://www.archlinux.org/news/464/


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-09-14 04:27:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

I saw this - thought it might apply in your case:

http://twitter.com/Isengrin/statuses/3972395612


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2009-09-14 04:31:21

humanzoo
Member
Registered: 2007-10-14
Posts: 28

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#7 2009-09-14 04:46:53

damjan
Member
Registered: 2006-05-30
Posts: 454

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#8 2009-09-14 04:52:32

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

Hadn't updated yet, damjan, so I really didn't know if it effected it.  Perhaps, I can be of more use to you wink

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

#9 2009-09-14 06:36:49

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#10 2009-09-14 06:51:53

schimpfj
Member
From: Frankfurt, Germany
Registered: 2007-08-15
Posts: 53

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#11 2009-09-14 07:27:25

Aldevar
Member
Registered: 2009-02-07
Posts: 7

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#12 2009-09-14 07:56:35

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#13 2009-09-14 09:38:05

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#14 2009-09-14 09:46:24

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

Aldevar wrote:

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

#15 2009-09-14 10:18:50

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

shining wrote:

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.

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

#16 2009-09-14 12:07:50

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

Llama wrote:

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

#17 2009-09-14 15:23:39

Isengrin
Member
Registered: 2008-08-07
Posts: 166

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#18 2009-09-14 15:28:33

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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* ?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#19 2009-09-14 15:46:12

Isengrin
Member
Registered: 2008-08-07
Posts: 166

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

shining wrote:
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

#20 2009-09-14 15:50:04

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

Isengrin wrote:

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

#21 2009-09-14 16:25:54

Isengrin
Member
Registered: 2008-08-07
Posts: 166

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

@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

#22 2009-09-14 16:50:04

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

#23 2009-09-14 17:35:24

damjan
Member
Registered: 2006-05-30
Posts: 454

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

@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

#24 2009-09-14 17:40:13

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

@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 smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#25 2009-09-14 20:56:12

Boris Bolgradov
Member
From: Bulgaria
Registered: 2008-07-27
Posts: 185

Re: After the vim upgrade I lost syntax color highlighting (7.2.245-1)

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

Board footer

Powered by FluxBB