Re: netrw for new extension

2006-10-13 Thread Hari Krishna Dara

On Fri, 13 Oct 2006 at 3:16pm, Charles E Campbell Jr wrote:

> Hari Krishna Dara wrote:
>
> >Netrw comes with a few supported formats, and the format is deduced by
> >the extension of the file, which is fair, but is there anyway to
> >configure netrw such that it will recognize new extensions as one of the
> >supported filetypes? E.g., there are several archives that are
> >compatible/same as zip archives, except for extra metadata attached
> >them. The jar, ear, war, and the Flex archives (forgot what the
> >extension is), they are all zip archives, so I want netrw to treat them
> >that way.
> >
> >
> >
> If, on the other hand, you're not really talking about netrw, but about
> the zip plugin -- presumably
> just include in your <.vimrc> a line such as:
>
>   au BufReadCmd   *.jar,*.ear,*.warcall
> zip#Browse(expand(""))
>
> Regards,
> Chip Campbell

Right, I somehow thought netrw is the one doing that. Thanks for the
information on how to do this with the zip plugin.

-- 
Thanks,
Hari

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: netrw for new extension

2006-10-13 Thread Charles E Campbell Jr

Hari Krishna Dara wrote:


Netrw comes with a few supported formats, and the format is deduced by
the extension of the file, which is fair, but is there anyway to
configure netrw such that it will recognize new extensions as one of the
supported filetypes? E.g., there are several archives that are
compatible/same as zip archives, except for extra metadata attached
them. The jar, ear, war, and the Flex archives (forgot what the
extension is), they are all zip archives, so I want netrw to treat them
that way.

 

If, on the other hand, you're not really talking about netrw, but about 
the zip plugin -- presumably

just include in your <.vimrc> a line such as:

 au BufReadCmd   *.jar,*.ear,*.warcall 
zip#Browse(expand(""))


Regards,
Chip Campbell



Re: netrw for new extension

2006-10-13 Thread Charles E Campbell Jr

Hari Krishna Dara wrote:


Netrw comes with a few supported formats, and the format is deduced by
the extension of the file, which is fair, but is there anyway to
configure netrw such that it will recognize new extensions as one of the
supported filetypes? E.g., there are several archives that are
compatible/same as zip archives, except for extra metadata attached
them. The jar, ear, war, and the Flex archives (forgot what the
extension is), they are all zip archives, so I want netrw to treat them
that way.

 


Are you talking about using netrw's map for the x key?  If so, look for

 :help netrw_filehandler

for a discussion about how to write your own.

Regards,
Chip Campbell



netrw for new extension

2006-10-13 Thread Hari Krishna Dara

Netrw comes with a few supported formats, and the format is deduced by
the extension of the file, which is fair, but is there anyway to
configure netrw such that it will recognize new extensions as one of the
supported filetypes? E.g., there are several archives that are
compatible/same as zip archives, except for extra metadata attached
them. The jar, ear, war, and the Flex archives (forgot what the
extension is), they are all zip archives, so I want netrw to treat them
that way.

-- 
Thanks,
Hari

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com