List all files in a directory tree to the buffer

This is a discussion on List all files in a directory tree to the buffer within the Editors forums in Theory and Concepts category; 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?...

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, 12:58 PM
bgold12
Guest
 
Default List all files in a directory tree to the buffer

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?
Reply With Quote
  #2  
Old 09-01-2008, 01:15 PM
Kenny McCormack
Guest
 
Default Re: List all files in a directory tree to the buffer

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

Reply With Quote
  #3  
Old 09-01-2008, 02:08 PM
bgold12
Guest
 
Default Re: List all files in a directory tree to the buffer

On Sep 1, 1:15*pm, gaze...@shell.xmission.com (Kenny McCormack) wrote:
> In article <991ea78e-b8e1-4f86-aac7-f061076e7...@t54g2000hsg.googlegroups..com>,
>
> bgold12*<bgol...@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


Thanks. How do I set the path in the shell that opens up so that it
includes C:\cygwin\bin, where my ls.exe file is located? It can't find
it.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:59 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.