Hi Daniel,

> I'm using a local install and the script at bin/vip expects a global
> install. I've tried a few things and while they all halfway work, none seem
> like a particularly good solution:
> 
> 1. modify bin/vip and update PATH to include the local install's bin
> directory
> 2. create a wrapper script, similar to the pil script for local installs
> 3. call ./pil ./lib/vip.l -vip~vi -bye

Yes, modifying bin/vip is not a good idea, as it will be overwritten at next
update of PicoLisp.

I always have a ~/bin/ directory on every machine I use, which is the
first entry in my PATH search order, so I us a script 'vi' like

   #!/data/data/com.termux/files/home/pico/bin/picolisp 
/data/data/com.termux/files/home/pico/lib.l
   # 04oct17abu

   (load "@bin/vip")

The path in the hash bang depends on the machine, the above example is for
Termux on Android.


Another, more direct way, (as I mentioned in some other mail) is:

   $ ./pil @lib/vip.l +
   : (vi "file")


> Also, does PicoLisp provide a function to set vip as the editor? (i.e., is
> there something for vip that's analogous to em for emacs or vi for vim)

Unfortunately not (yet) completely. If you start as above, by loading
@lib/vip.l, and do

   : (vi 'vi)

it *does* use Vip to browse the sources, but things like

   : (edit 'vi)

still use Vim.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe

Reply via email to