You are not logged in.

#1 2010-02-19 00:03:11

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

[SOLVED] vi (vim) no longer works properly after updating the system

After updating the system with pacman -Syu vi stopped working. All syntax colors are gone, and everything is grey. When I press i to enter "insert" mode, editing is not visible. Changes are obscure and you can't tell what you are modifying.  Quitting with :q will still prompt you to use :q! to abort changes, even if no changes were visibly made.

When scrolling to the beginning or end of a file, the screen flashes with grey glitch like areas.  What happened to my vi!?!?!?!?!?

This all happened while following the beginner's guide to install arch linux.  I realized this when trying to arbitrarily read a test file I made directly after updating.

The problems continued to be visible when installing and setting up sudo (those steps are the next steps that require vi)...  I think the sudo installation worked... but my vi is horribly glitchy sad

Any ideas?

Last edited by trusktr (2010-02-19 07:19:55)


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-02-19 00:17:09

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: [SOLVED] vi (vim) no longer works properly after updating the system

What you are now experiencing is vi. What you did have was vim labeled as vi from the install media. Install vim and you can have all of those wonderful features back again!

If you want to know more you should be able to find threads about it, it comes up fairly frequently.

Last edited by jac (2010-02-19 00:17:21)

Offline

#3 2010-02-19 00:42:05

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] vi (vim) no longer works properly after updating the system

hehe gotcha! yeah i looked at a manual for the original vi, and it's a lil bit more confusing! like in edit mode (i) you can't go past the last character so i was stuck trying to figure out how to continue a line... then I learnt the "a" command to append more characters at the end of a line...

Ok, so after re-installing vim with pacman -S vim how do i re-issue the vi command to be used for vim?

Last edited by trusktr (2010-02-19 00:45:17)


joe@trusktr.io - joe at true skater dot io.

Offline

#4 2010-02-19 00:48:14

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

Re: [SOLVED] vi (vim) no longer works properly after updating the system

You can add this to your .bashrc

export EDITOR="vim"

Or just type "vim <file>"


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-02-19 00:56:28

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

Re: [SOLVED] vi (vim) no longer works properly after updating the system

Setting EDITOR does not help in every case. For instance, visudo is by default hard linked to vi. (You can change this, I know. wink )

But in fact, vi is only a symlink to ex. So I simply renamed this link and put another symlink to vim (vim-big in my case since I in fact do use the gvim package).

/usr/bin/vi -> vim-big
/usr/bin/vi-simple -> ex

The drawback is that I have to set those links on every vi-update. (But I sure will remember...)

Last edited by bernarcher (2010-02-19 00:58:57)


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

Offline

#6 2010-02-19 01:06:54

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] vi (vim) no longer works properly after updating the system

thanks you guys, i guess i'm  just gunna settle with the vim <file> command. What's an extra lil m gunna do? hehe big_smile


joe@trusktr.io - joe at true skater dot io.

Offline

#7 2010-02-19 01:47:07

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

Re: [SOLVED] vi (vim) no longer works properly after updating the system

It's worth setting it, either as I or bernarcher has suggested. There are times when, for example, you need to edit a PKGBUILD and it will default to your $EDITOR.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2010-02-19 05:08:38

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] vi (vim) no longer works properly after updating the system

well noted! thanks smile


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB