Re: List all files in a directory tree to the buffer

This is a discussion on Re: List all files in a directory tree to the buffer within the Editors forums in Theory and Concepts category; Kenny McCormack scripsit: > In article <991ea78e-b8e1-4f86-aac7-f061076e716d @ t54g2000hsg.googlegroups.com>, > bgold12 <bgold12 @ gmail.com> wrote: >>Is there a way to list all files in a directory tree to the current >>vim buffer, similar to what the system command "ls -R >> tempfile" >>would do in the command line? > >:r !ls -R Or ut =glob('**') In pure Vimspeak. m. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078 vim.pl - http://skawina.eu.org/mikolaj CLEWN - http://clewn.sf.net...

Go Back   Application Development Forum > Theory and Concepts > Editors

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-01-2008, 02:19 PM
Mikolaj Machowski
Guest
 
Default Re: List all files in a directory tree to the buffer

Kenny McCormack scripsit:
> In article <991ea78e-b8e1-4f86-aac7-f061076e716d@t54g2000hsg.googlegroups.com>,
> bgold12 <bgold12@gmail.com> wrote:
>>Is there a way to list all files in a directory tree to the current
>>vim buffer, similar to what the system command "ls -R >> tempfile"
>>would do in the command line?

>
>:r !ls -R


Or

ut =glob('**')

In pure Vimspeak.

m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
vim.pl - http://skawina.eu.org/mikolaj
CLEWN - http://clewn.sf.net
Reply With Quote
  #2  
Old 09-09-2008, 06:19 PM
Sven7
Guest
 
Default Re: List all files in a directory tree to the buffer

Unfortunately,

ut =glob('**')

makes my Vim (7.1) freeze...

/Staffan
Reply With Quote
  #3  
Old 09-09-2008, 06:50 PM
Mikolaj Machowski
Guest
 
Default Re: List all files in a directory tree to the buffer

Sven7 scripsit:
> Unfortunately,
>
>ut =glob('**')
>
> makes my Vim (7.1) freeze...


1. It is not very fast.
2. It will list *all* files down from current directory. If you start
Vim from $HOME it can really take some time to list all files there.

m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
vim.pl - http://skawina.eu.org/mikolaj
CLEWN - http://clewn.sf.net
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:45 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.