On Mar 7, 1:17 pm, Marc Weber <[email protected]> wrote:
> > The code is just a proof of concept and may be the starting point
> > for a real vim-packer.
>
> So we do have tho code.
> How should it be distributed?
>
> Marc Weber

I can make a vim plugin from the code, but it will take some time,
probably a month since I currently don't have much spare time.

I would put the python code in a module (eg. vimarchive) that would
be installed in ~/.vim/modpython
(like here: 
http://vimuiex.sourceforge.net/vimdoc/vxlib_utils.html#vxlib-python).
Then I would modify or add the plugins for gzip, bzip, zip, etc. to
use the module.

Another possibility would be to write executable frontends for each
program
and just change augroup gzip to use the new frontends:

#!python
# file pygzip.py
import vimpack, sys
if sys.argv[1][:2] == '-d': gzip_expand(...)
else: gzip_compress(...)

#file pygzip.bat
python gzip.py %1 %2 %3 ...

Marko

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to