[MacPorts] #14620: vim-app 7.1.* improvement to display stdin
MacPorts
trac at macosforge.org
Mon Mar 10 03:46:57 PDT 2008
#14620: vim-app 7.1.* improvement to display stdin
-----------------------------+----------------------------------------------
Reporter: itsme at xs4all.nl | Owner: macports-tickets at lists.macosforge.org
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Enhancements
Component: ports | Version: 1.6.0
Keywords: |
-----------------------------+----------------------------------------------
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
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14620>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list