You are not logged in.

#1 2009-03-16 22:48:25

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Why does vim depend on vi?

Running a very minimal machine in minimal space, I have a custom vim package that strips out gui, perl, python and ruby intergration because i don't use any of those features. i was thinking of also removing vi to save try to save the 28 megabytes (it is important, its a 2 gig usb stick), since vi and vim come from the same source and I initially though they really shouldn't need to depend on each other.

However, it turns out that vi creates the /usr/share/vim folder which both it and vim use and need. This looks like the only reason vim needs vi, and obviously its done this way to prevent package file conflicts. The 28 IS pretty much the size of the /usr/share/vim folder, so its a stupid space "optimization" to persue, as without vi, vim would just be that much bigger itself, but for curiosity's sake, is it possible to build vim without vi? I couldn't figure out what trick causes the vi PKGBUILD to include it and the vim one to drop it. What causes vi package to create a /usr/share/vim and prevents the vim package from doing the same?

Offline

#2 2009-03-16 22:53:48

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Why does vim depend on vi?

In Arch (currently) vi is vim without gui, perl, python and ruby features.

Offline

#3 2009-03-17 00:08:28

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Why does vim depend on vi?

Also, vi lacks X support and vim is compilled --with-features=big while vi only has --with-features=normal.
Vi, for example, won't do 256 colors.

Offline

#4 2009-03-17 00:46:46

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Why does vim depend on vi?

You might like my vim-stripped in AUR.


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#5 2009-03-17 07:19:13

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Why does vim depend on vi?

If you only want a vi-ish editor, look at lv in AUR. It is very small.

Offline

Board footer

Powered by FluxBB