Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14620 closed enhancement (fixed)

vim-app 7.1.* improvement to display stdin

Reported by: itsme@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: vim-app

Description

by testing if the first parameter of /opt/local/bin/gvim equals '-' and then executing

cat | exec "$binary" ....

instead of just

exec "$binary"

you can open stdin in vim-app.

for example you can use it like this:

ls | gvim -

and get the directory contents in vim.

attached is the complete modified gvim script

Attachments (1)

gvim (1.7 KB) - added by itsme@… 17 years ago.
gvim wrapper script with stdin support

Download all attachments as: .zip

Change History (5)

Changed 17 years ago by itsme@…

Attachment: gvim added

gvim wrapper script with stdin support

comment:1 Changed 17 years ago by raimue (Rainer Müller)

Owner: changed from macports-tickets@… to raimue@…

Thanks for the submission, I will look into it.

comment:2 Changed 17 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

This works for the case using 'gvim -' only, not then also specifying other arguments. But I committed it in r35212, as it is better then no handling of stdin.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Port: vim-app added

comment:4 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.