A "traditional" vi for puppy 3.00 ( & 4.20)

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

A "traditional" vi for puppy 3.00 ( & 4.20)

#1 Post by paulh177 »

I've been irritated by e3vi since I first found puppy, but only recently became annoyed enough to look out a replacement.

vim is just too big (23MB) and is overengineered for my wants and needs.
I found source code for the "traditional" vi here, and a suitable termcap that will make it workhere (thanks to
this thread)

It compiled without trouble (I'm not a programmer at all btw) under Puppy 3.00 with devx_300, and I packaged it up with dir2pet etc.
Installed, it comes in at about 500K, and it drives nicely for simple tasks.

I hope someone else will find it as useful (and beautiful) as I.

paul

EDIT (05 05 2008) The termcap link given above now seems to be broken, but forum user carolus has found this one:
http://fts.ifac.cnr.it/cgi-bin/dwww?typ ... termcap.gz
Attachments
ex-050325-i486.pet
Simple dotpet for trad vi
(126.59 KiB) Downloaded 923 times
Last edited by paulh177 on Thu 16 Apr 2009, 18:31, edited 1 time in total.

polarops3
Posts: 3
Joined: Sun 22 Jun 2008, 01:57
Location: salem, oregon usa

vi for puppy 4.00

#2 Post by polarops3 »

Thanks so much, paul. I registered just to thank you.

Works, so far, flawlessly in v4.0 (2.6.21.7), ram only install (live cd from HD).

Though I've been a great puppy admirer and user for about 3 years, now, perhaps I'm still a newbie at getting information. It took me close to an hour to find your download: specifically a pre-compiled vi that was pupget/petget package that works for recent versions.
I wish we could somehow bump up this link for others that might be interested.

Without causing a heated vi discussion, I wonder if we could get this included in the next release of official petGet files unleashed. At least it would be available, then, via the installer.

Again, thanks so very much. My pro-pup-ductivity increases thanks to you.

BTW, I don't know much about termcap, but it ran without hitch in rxvt. I'd be glad to make any quick tests for this on my live-boot.

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#3 Post by paulh177 »

Thanks very much for your kind words.The very action of your posting will have pushed this thread up the forum ...
However editor preferences are very personal so I somehow doubt this little package will ever take off big-style!
best wishes
Paul

jimsiff
Posts: 3
Joined: Mon 30 Jun 2008, 07:19

#4 Post by jimsiff »

Thanks for the package! E3vi is not vi... not even close.

Kelly
Posts: 18
Joined: Wed 20 Aug 2008, 14:55
Location: UK

Many thanks - my sanity is saved :D

#5 Post by Kelly »

Paul

Like you e3 had irritated me ever since I started using Puppy - all of a month - but I'd never got irritated enough to do anything about it.

A couple of days ago it finally do and I asked if there was a vi lookalike for Puppy.

The search at http://wellminded.com/puppy/pupsearch.html revealed your thread and I jumped at the chance of a better vi.

Five minutes work of downloading and installing and all I can say is THANKS it is instantly better than e3vi.

Thanks from very happy bunny
Kelly

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#6 Post by amigo »

For comparison, you might also try 'elvis' which is the vi substitute used in Salckware. There is also a tinyelvis which is much smaller.

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#7 Post by paulh177 »

amigo have you got a link for tinyelvis ?

paul

Sven
Posts: 3
Joined: Wed 23 Jul 2008, 17:25

#8 Post by Sven »

got it from debian

http://packages.debian.org/unstable/editors/elvis-tiny

depends on ncurses but isn't such a mess with termcap

good luck,
Sven
Attachments
elvis-tiny-1.4.pet
minimal vi like editor
(85.04 KiB) Downloaded 801 times

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#9 Post by amigo »


RHartman10
Posts: 12
Joined: Sun 12 Apr 2009, 20:10

Found it. Thanks.

#10 Post by RHartman10 »

Ignore my request for more info. I was assuming some sort of dedicated pet package search, but a plain ol' forum search was enough.

Thanks again for giving me a real vi!

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#11 Post by paulh177 »

I've now compiled this under Puppy 4.2.
The .pet includes and installs a suitable termcap, and the main executable has been stripped.
I haven't performed any regression tests ;)
Attachments
ex-050325-i486.pet
A simple "traditonal" vi compiled under Puppy 4.20
(128.32 KiB) Downloaded 684 times

User avatar
cklammer
Posts: 28
Joined: Sat 26 Apr 2008, 14:12
Location: Abu Dhabi, United Arab Emirates

"xterm: unknown terminal type"

#12 Post by cklammer »

Hi,

Sorry to bump an old thread but my post subject relates significantly to this thread's subject ...

I am in the process of switching from 4.2 to 4.3.1. The old "xterm: unknown terminal type" issue is surfacing again (http://www.murga-linux.com/puppy/viewtopic.php?t=28767).

I have tested both versions of the ex-050325 pet and installing termcap manually as per the instruction in the OP (and I still have and used the original termcap file from the very first version of the OP) - nothing works: the issue is persistent. The remedies of the other above mentioned thread do not work either.

Does anybody have any ideas?

Off-Topic: Happy New Year :D

cklammer

User avatar
cklammer
Posts: 28
Joined: Sat 26 Apr 2008, 14:12
Location: Abu Dhabi, United Arab Emirates

#13 Post by cklammer »

Sven wrote:got it from debian

http://packages.debian.org/unstable/editors/elvis-tiny

depends on ncurses but isn't such a mess with termcap

good luck,
Sven
It destroys "/usr/local/bin/defaulttexteditor". Original content is:

Code: Select all

#!/bin/sh
exec xterm -e elvis ""
It should be:

Code: Select all

#!/bin/sh
exec xterm -e elvis "$@"
(Just add $@ between the double quotes on the second line)

I am using 4.31 and tested this on a vanilla 4.31 (booted with pfix=ram)

cklammer

DMcCunney
Posts: 889
Joined: Tue 03 Feb 2009, 00:45

Re: "xterm: unknown terminal type"

#14 Post by DMcCunney »

cklammer wrote: I am in the process of switching from 4.2 to 4.3.1. The old "xterm: unknown terminal type" issue is surfacing again (http://www.murga-linux.com/puppy/viewtopic.php?t=28767).

I have tested both versions of the ex-050325 pet and installing termcap manually as per the instruction in the OP (and I still have and used the original termcap file from the very first version of the OP) - nothing works: the issue is persistent. The remedies of the other above mentioned thread do not work either.

Does anybody have any ideas?
If you open a terminal and do a "set" or "env", what do you see?

*nix boxes expect to see a "TERM=<whatever>" string in the environment, where <whatever> identifies what you are using as a terminal. The identifier maps to a name in the termcap file, where the entry that defines that terminal and how to talk to it will hopefully be found.

It sounds like either

a) The TERM variable isn't defined, or
b) The value it's set to isn't in termcap, or
c) the termcap file isn't where the system expects to find it.

On Puppy 4.12, here, termcap is in /etc/termcap, and TERM=xterm

The version of vi offered by the OP works fine.
______
Dennis

Post Reply