Hi,
thanks for the answers ! This way (see below) is the best for me.

Br,     
        Peter. 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of ext Luc Hermitte
Sent: Wednesday, November 25, 2009 11:37 AM
To: vim use
Subject: Re: How to get directory list from script ?


Hello,

"Peter Marczis (NSN - HU/Budapest)" <[email protected]> wrote :
> I would like to write a vim script which reads into a list , the
> directory tree...
> how it is possible to get the subdirectories into a list ? (from PWD
> for example.)

You can also play with:
  echo filter(split(globpath(getcwd(), '**'), '\n'),
'isdirectory(v:val)')

It may not be the most efficient way, but it should do the trick.

-- 
Luc Hermitte
http://lh-vim.googlecode.com/
http://hermitte.free.fr/vim/



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to