New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14620 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

vim-app 7.1.* improvement to display stdin

Reported by: itsme@… Owned by: raimue@…
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

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

Change History

Changed 4 years ago by itsme@…

  • attachment gvim Download added

gvim wrapper script with stdin support

Changed 4 years ago by raimue@…

  • owner changed from macports-tickets@… to raimue@…

Thanks for the submission, I will look into it.

Changed 4 years ago by raimue@…

  • status changed from new to closed
  • resolution set to fixed

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.

Changed 3 years ago by ryandesign@…

  • port set to vim-app

Changed 3 years ago by anonymous

  • milestone Port Enhancements deleted

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.