Micah Cowan <[EMAIL PROTECTED]> writes:

> Zaphod wrote:
>> Hi
>> 
>> 1st of all, i am using screen for number of years now and like it very
>> much.
>> lately decided to upgrade my environment. So my question is.
>> 
>> Using .screenrc file where wants to open window with vim. The vim should
>> also
>> open number of files. If running such vim from bash:
>> vim `find . -name '*.c' -o -name '*.cpp'`
>> but such syntax doesn't work with screen command in RC file.
>
> This may help:
>
> screen sh -c "vim `find . -name '*.c' -o -name '*.cpp'`"
> title vim

FWIW, sh -c 'vim find . -name \*.c -o -name \*.cpp -exec vim {} +' would
be better, if your system supports POSIX 2003's variadic -exec {} +.
(Failing that, xargs.)



_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to