You are not logged in.

#1 2008-01-16 19:47:17

thetrivialstuff
Member
Registered: 2006-05-10
Posts: 191

update installed vi + vim; do not want vi

Looks like my latest update resulted in vi being installed -- maybe it was installed before as well, but /usr/bin/vi -> /usr/bin/vim ? It took me a while to find out why my .vimrc was suddenly being ignored (I'm one of those people that types 'vi' and expects vim wink ).

~Felix.

Offline

#2 2008-01-16 19:51:56

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: update installed vi + vim; do not want vi

alias vi=vim

Problem solved.

Offline

#3 2008-08-07 00:34:29

cretafan
Member
Registered: 2008-08-06
Posts: 2

Re: update installed vi + vim; do not want vi

I am new to Archlinux. Having vim called vi was the only (annoying) problem after installation. What's the rationale for this? All distributions I can boot make a vi symlink. I have my vim customizations on my home partition which is mounted in Arch as well. I needed

ln -s ~/.vimrc ~/.virc
ln -s ~/.vim ~/.vi

to get my custom vim environment working. I need alias vim=vi and not the other way round.

Offline

#4 2008-08-07 00:48:43

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: update installed vi + vim; do not want vi

cretafan wrote:

I am new to Archlinux. Having vim called vi was the only (annoying) problem after installation. What's the rationale for this? All distributions I can boot make a vi symlink. I have my vim customizations on my home partition which is mounted in Arch as well. I needed

ln -s ~/.vimrc ~/.virc
ln -s ~/.vim ~/.vi

to get my custom vim environment working. I need alias vim=vi and not the other way round.

If I understand you correctly you type vi and expect vim to start. aliasing vi to vim would solve this, because alias are evaluated before $PATH. You would type vi and vim would start which will read ~/.vimrc.

Offline

#5 2008-08-07 06:38:53

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

Re: update installed vi + vim; do not want vi


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

Offline

#6 2008-08-07 12:45:33

cretafan
Member
Registered: 2008-08-06
Posts: 2

Re: update installed vi + vim; do not want vi

Thanks. Please drop a line about this in the Beginner's Guide. Getting preexisting .vimrc and .vim user customization working needs the aformentioned symlinks with the basic vi setup. And unsetting alias vi=vim. Btw I don't need power vim, it's all about beeping, color and syntax.

Offline

#7 2008-08-07 19:46:31

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: update installed vi + vim; do not want vi

cretafan wrote:

Thanks. Please drop a line about this in the Beginner's Guide. Getting preexisting .vimrc and .vim user customization working needs the aformentioned symlinks with the basic vi setup. And unsetting alias vi=vim. Btw I don't need power vim, it's all about beeping, color and syntax.

Everyone can edit the wiki. Feel free to create a wiki account and do the changes yourself.

Offline

Board footer

Powered by FluxBB