Re: Feed a list of filenames to vim

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 5/18/2011 9:54 AM, Jason Pyeron wrote:
>> -----Original Message-----
>> From: centos-bounces@xxxxxxxxxx 
>> [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Bowie Bailey
>> Sent: Wednesday, May 18, 2011 9:55
>> You can also do this:
>>
>> $ vim `ls -1 *.txt`
>>
>> or this:
>>
>> $ vim `find /some/dir -name '*.txt'`
>>
>> It works with any command that outputs a list of filenames.
> Until you have a space in a filename.

True.  But unless vim has a null-separator option for command line
arguments, I don't know of a way to automate that case.

-- 
Bowie
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux