I think I can do it like this
let fileList=glob('*')
let fileList1=split(fileList)
for file in fileList1
rename(fileList[0],abc)
endfor
Regards,
Deepak Nag
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Maxim Kim
Sent: Tuesday, October 07, 2008 11:54 AM
To: vim_use
Subject: Re: How can i get all files in a directory
Try
:h glob
:h globpath
:echo glob('*')
On 7 окт, 10:17, "Nag, Deepak" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am trying to write vim script which will fetch all the files
> from a directory. Can I retrieve them and store in a list?. So that I
> can rename all those files according to some criteria.
>
> Regards,
>
> Deepak Nag
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---