Re: Feed a list of filenames to vim

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



On 05/17/2011 09:19 AM, Jussi Hirvi wrote:
> There are some googlable ways to feed a list of filenames to vim, but I
> stumble on weird results.

[...]

The easy way for me is 'avoid the shell - use Perl instead':

perl -e 'my @files = grep(!/^\s*$/,<ARGV>); chomp @files; 
system("vim",@files);'  example_list.txt

-- 
Benjamin Franz
_______________________________________________
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