#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)
Change History (5)
Changed 17 years ago by itsme@…
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: | new → closed |
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.
gvim wrapper script with stdin support