On Jul 30, 1:04 am, Christian Brabandt <[email protected]> wrote:
> Hi googler!
>
> On Mi, 29 Jul 2009, googler wrote:
>
> > I'm thinking to solve it this way.
> > 1. I have a list of all the files that are listed on the left window
> > (with their full path name) ==> is there a way to get such a list?
>
> Tricky. I do not use netrw a lot, so there might be easier ways. Dr.  
> Chip may correct me, if I am saying something wrong.
> I think the directory displayed is always in NETRW_HISTDIR_0. So I
> would do basically something like this:
>
> If the filetype is netrw, Read in the whole buffer into a list. Then
> filter all rows by lines that start with ^" and at last prepend
> NETRW_HISTDIR_0 to each row, excep maybe ../
>
> (see help getline(), filter(), help map(), etc.)

Hi! Thanks for your suggestions. But I don't see anything called
NETRW_HISTDIR_0 in :help. If such a variable is available, that will
be very helpful in this case.

> > Does this sound good? Or is there a better approach? Also, how do I
> > qualify the left and right split windows? For example, if I want the
> > name of the file in the right window, the file name is stored in %,
> > but how do I tell vim which window?
>
> Not sure. Look at the window and buffer functions (see :h
> function-list)

> Also take a look at :h eval.txt. All the stuff for writing scripts is
> in there.
>

This info will be useful given that I have zero experience in writing
vim scripts.

> Mit freundlichen Grüßen
> Christian
> --
> Achtung nutzt sich ab wie Liebe.
>                 -- Luc de Clapiers Vauvenargues (Reflexionen und Maximen)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to