Vim 7.3

I have created a PET for the Vim text editor, version 7.3. I will be using Vim to convert BaCon code to color-highlighted HTML, as explained in the previous blog post:

This PET is compiled in Wary, but will probably work ok in other puppies (6.4MB):

...when installed, it creates an entry in the Document category.

Docs (1.8MB):

My knowledge of Vim is about nothing, so anyone who is a Vim expert is invited to examine the PET and see if they can improve the setup in any way. Some of the config files that I have included, I am not sure if they are all in the right place, or if they are appropriate -- although the editor seems to be working ok.

Posted on 7 Mar 2011, 19:26


Posted on 7 Mar 2011, 19:51 by Sage
Text editors
VIM & Edlin - great for frightening the horses and keeping out wannabe neophytes from the inner sanctum of IT.
If you found Vi difficult, what hope for mortals? Back to BASICs, Fortran and Autocode...

Posted on 7 Mar 2011, 22:22 by carolus
Lack of vi is one feature that has set Puppy aside from every other version of Linux/Unix that I have ever used. vi takes a few painful weeks to learn, but then you never have to learn another editor, and it is always present (except for Puppy).

Posted on 8 Mar 2011, 8:19 by BarryK
vi in Puppy
vi is in Puppy. It is a Busybox applet and was apparently buggy but I think it works ok in more recent releases of Busybox, as in Wary 5.x.

It isn't in the menu though, you have to open a terminal and type "vi".

Posted on 8 Mar 2011, 13:56 by broomdodger
vi in Puppy
vi in Busybox is a VERY tiny implementation. Useful only in emergencies. Busybox vi does not support user defined options or plugins.

I have been compiling vim for as long as I have been using any Linux. I use vim on Mac, Windows, Linux and all work the same... that is great. I do embedded systems programming.

Barry I noticed the pet you made is 2 MB larger than mine. What extra do you compile? I do the "normal" version excluding darwin. I have more learning to do about making a pet.


Posted on 8 Mar 2011, 15:40 by BarryK
Re compiling Vim
I have no prior experience with Vim, so my compile configuration is probably not the smallest that is satisfactory. Here is what I did:

# cd src

# export VIMRCLOC=/etc
# export VIMRUNTIMEDIR=/usr/share/vim
# export MAKE="make -e"
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-netbeans --enable-multibyte --enable-xim --enable-fontset --enable-gui=gtk2 --disable-gpm --with-features=big
# cd ..
# make
# new2dir make install

...I chose "big" features.

Posted on 8 Mar 2011, 22:18 by carolus
I didn't know puppy had vi, thanks. Since 2.16 I've aliased vi to vim or ex-vi. For some reason ex-vi doesn't build from the tarball with recent puppies, but the binary from an old puppy still works.

Posted on 10 Mar 2011, 7:35 by stray
vi is crucial for oldschoolers
Yes indeed, they say your first-learned editor is the one you'll prefer ever after. They made us learn vi to start out coding pascal or C or whatever on the UNIX mainframes (college in the late 80s) and there's nothing as quick once you know it.. (it helps having learned to type 60wpm back in jr. high and hence hating the idea of a mouse or even moving your fingers off the Home Row of the keyboard!). Actually, a classmate who went further than me in academe said you just gotta go emacs eventually for power reasons. Pretty obscure these days I imagine.. but I did have need for a hex editor and found a slim thing called bvi (binary vi) among .. from which I also have been installing vi ..
Oh not to forget.. my main point of posting was to mention how insulting the busybox vers. of vi is to us old Unix guys. Forget plugins and such, I couldn't even do the basic editing & load/save commands.. search/replace-- I forget what exactly but it was quite shocking how not-vi that was. But as ever,

Thanks for all you do, BK!

Posted on 10 Mar 2011, 8:23 by BarryK
I should mention also that nearly all puppies have 'e3vi' which is another small implementation of vi. Again, open a terminal and type 'e3vi' -- it comes up with a help page that shows what it can do.

Posted on 10 Mar 2011, 10:19 by BarryK
Vim PET re-uploaded
Well, it is uploading as I type this.

I upgraded /root/.vim/syntax/bacon.vim, the xyntax highlighting file for BaCon.

If you want, you can also get bacon.vim from the BaCon website:

The new bacon.vim has color highlighting for the HUG functions.

Posted on 13 Mar 2011, 9:39 by broomdodger
redirect to new2dir dir2pet
I have been compiling vim and making pet files.

I have a script that handles most of it, but would like to pass items like executable, icon path rather than typing them.

Both new2dir dir2pet use the read command, is it possible to redirect from a file to those read commands?

Anyone know how?

Posted on 14 Mar 2011, 7:53 by zygo
cat and pipeline
I think
cat params | dir2pet dir

Posted on 15 Mar 2011, 14:55 by broomdodger
re: cat and pipeline
Thank you zygo

I made two params files:
1) to feed new2dir
2) to feed dir2pet
It works great. When there are new patches for vim, I simply change the number of patches, start my script and an updated vim is made.

cat $DIR00/new2dir.txt | new2dir make install
cat dir2pet.txt | dir2pet vim-7.3.$VPATCH-i486