You are not logged in.

#1 2009-09-21 12:18:28

unregistered
Member
Registered: 2008-04-09
Posts: 134

[SOLVED] vim upgrade error

When I tried doing pacman -Syu
I got the following error:
error: failed to commit transaction (conflicting files)
vim: /usr/bin/xxd exists in filesystem
vim: /usr/share/licenses/vim/license.txt exists in filesystem
Errors occurred, no packages were upgraded.

What should I do to solve this problem?

Is my problem related to this issue? :
http://www.archlinux.org/news/464/

Last edited by unregistered (2009-09-24 01:41:50)

Offline

#2 2009-09-21 20:50:38

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: [SOLVED] vim upgrade error

Did you do what it says to do in the article?  If not, don't you think you should?

Jay

Offline

#3 2009-09-21 20:52:38

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] vim upgrade error

do pacman -Qo /usr/bin/xxd and pacman -Qo /usr/share/licenses/vim/license.txt and paste the output

Last edited by wonder (2009-09-21 20:52:53)


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2009-09-22 00:51:30

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: [SOLVED] vim upgrade error

ok seems like there's been a new update and I did what the article told me and everything seems fine except when I run vi, it doesn't show any line numbers, my configuration, etc
my .virc file:
set hls is ic number
syntax off
:hi LineNr ctermfg=green ctermbg=black

After the upgrade,
pacman -Qo /usr/bin/xxd shows:
/usr/bin/xxd is owned by vim 7.2.245-1

pacman -Qo /usr/share/licenses/vim/license.txt shows:
/usr/share/licenses/vim/license.txt is owned by vim 7.2.245-1

how can I make vi run my configurations?

Offline

#5 2009-09-22 05:33:12

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] vim upgrade error

Now you've upgraded running vi will do just that, rather than the light vim version it would have run previously.  In order to use the vim functionality you will now need to use vim.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2009-09-23 02:50:37

Mooble
Member
Registered: 2009-06-17
Posts: 4

Re: [SOLVED] vim upgrade error

Is there a way to change it so I can just type vi and have linux use vim?  I'd like to keep my habits, but vi itself is unusable now...

Offline

#7 2009-09-23 02:59:34

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: [SOLVED] vim upgrade error

You could always alias it:

in .bashrc:

alias vi='vim'

I chose rather to just retrain myself to type vim instead of vi.  Just seemed like a poor workaround to me.

To be fair, vi is certainly not unusable, you've just become accustomed to vim features.

Last edited by beretta (2009-09-23 03:00:38)

Offline

#8 2009-09-23 03:00:04

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: [SOLVED] vim upgrade error

alias vi to vim.

Offline

#9 2009-09-23 07:58:05

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

Re: [SOLVED] vim upgrade error

SamC wrote:

alias vi to vim.

Well, do this only if you really never want to use the simple vi installation.
I won't do so, because I prefer a simple editor when having to do really basic system maintenance.


To know or not to know ...
... the questions remain forever.

Offline

#10 2009-09-23 11:24:35

Mooble
Member
Registered: 2009-06-17
Posts: 4

Re: [SOLVED] vim upgrade error

Thanks, I'll use that work around.

And yeah, I probably just don't know anything about the original vi.  I thought something horrible had happened when I first noticed XD

Last edited by Mooble (2009-09-23 11:30:29)

Offline

Board footer

Powered by FluxBB