vi/ex - the original!

Forum rules
General talk about software - if the program is not in the repos, please links to the developer's page or github.
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

vi/ex - the original!

Unread post by machinebacon » Sat Jul 19, 2014 11:15 am

No more bloat. Get the real thing. This is as close as it gets to the original code: http://sourceforge.net/projects/ex-vi/f ... t/download

simply unpack, change to dir,

edit the Makefile, and find the string 'ucb' and replace it with 'bin', also set the terminal library:

Code: Select all

# A BSD-like install program. GNU install will fit well here, too.

-- INSTALL = /usr/ucb/install 
++ INSTALL = /usr/bin/install

-- #TERMLIB = ncurses
++ TERMLIB = ncurses

-- TERMLIB        = termlib
++ #TERMLIB        = termlib
make, sudo make install. This creates:

/usr/local/bin/edit
/usr/local/bin/vedit
/usr/local/bin/vi
/usr/local/bin/view

Enjoy!
..gnutella..

User avatar
RandomCharacter
Gangbanger
Posts: 323
Joined: Thu Aug 15, 2013 5:25 pm

Re: vi/ex - the original!

Unread post by RandomCharacter » Sat Jul 19, 2014 1:16 pm

What about just installing package nvi? That is what I used to do.

Code: Select all

nvi - 4.4BSD re-implementation of vi
Tim

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: vi/ex - the original!

Unread post by machinebacon » Sat Jul 19, 2014 1:40 pm

Because it is not the same thing. Quote:
This implementation is derived from ex/vi 3.7 of 6/7/85 and the BSD
termcap library, originally from the 2.11BSD distribution. All of them
were changed to compile and run on newer POSIX compatible Unix systems.
nvi is the replacement of traditional ex/vi, due to licensing, in BSD4.4
The traditional ex/vi got a BSD license in 2002, and this one is as far as possible the original code.

E.g. if you enter an unknown command, nvi will tell you "xxx isn't a vi command", and this was not there in the original. Have a try.
..gnutella..

User avatar
RandomCharacter
Gangbanger
Posts: 323
Joined: Thu Aug 15, 2013 5:25 pm

Re: vi/ex - the original!

Unread post by RandomCharacter » Sat Jul 19, 2014 1:54 pm

Thanks. I have reverted to just using vim, now.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: vi/ex - the original!

Unread post by machinebacon » Sat Jul 19, 2014 1:54 pm

BLOAT! ;)
..gnutella..

User avatar
rust collector
Motörhead
Posts: 536
Joined: Mon Jan 13, 2014 3:56 pm
Location: no_nb

Re: vi/ex - the original!

Unread post by rust collector » Sat Jul 19, 2014 2:08 pm

just to confuse things some more, how does busybox vi compare to regular vi, or vim...or ????

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: vi/ex - the original!

Unread post by machinebacon » Sat Jul 19, 2014 2:26 pm

busybox vi is "just" a clone/rewrite, and it lacks eg. unicode support (which ex/vi has in this version), and *probably* it does not support as many terminals (/lib/terminfo/) - but I have no evidence for this, just guessing logically.

vim.tiny is a slim version of vim but without features like syntax highlighting, undo/redo (the vim-runtime package is not installed there). Both vim and vim.tiny can emulate vi/ex.
..gnutella..

User avatar
rust collector
Motörhead
Posts: 536
Joined: Mon Jan 13, 2014 3:56 pm
Location: no_nb

Re: vi/ex - the original!

Unread post by rust collector » Sat Jul 19, 2014 2:34 pm

It makes sense that it is simpler, just wondering.
Last edited by rust collector on Sat Jul 19, 2014 3:24 pm, edited 1 time in total.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: vi/ex - the original!

Unread post by machinebacon » Sat Jul 19, 2014 2:39 pm

Apart from busybox vi, the lightest editor in Debianland is e3 - which ironically emulates a handful of editors, like wordstar, nedit, pico, vi and emacs. Worth to take a look ;)
..gnutella..

Post Reply