zsh-users
 help / color / mirror / code / Atom feed
* Substituting grep (and other) output to open files in Vim
@ 2011-05-10 13:46 Richard Hartmann
  2011-05-10 14:12 ` Mikael Magnusson
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Richard Hartmann @ 2011-05-10 13:46 UTC (permalink / raw)
  To: zsh-users

Hi all,

I would like to be able to do the following, but I am stuck. Every
pair of lines is what I would execute and what it would be transferred
to. I am assuming that every file "name" (i.e. including colons etc) I
am running Vim on does not exist. If it exists, it should be opened
instead of magic happening. "foo" exists while "foo:" etc do not.

vim foo:
vim foo

vim foo:bar
vim foo

vim foo:123
vim foo +123

vim foo:123:
vim foo +123

vim foo:123:bar
vim foo +123

Ideally, the same would happen for vimdiff. And yes, vimdiff heeds
only one +n and the last one on the command line wins. That's fine.


I am pretty sure this is trivial to do in zsh, but as I said I am at a
loss as to how..


Thanks,
Richard


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-05-28 11:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 13:46 Substituting grep (and other) output to open files in Vim Richard Hartmann
2011-05-10 14:12 ` Mikael Magnusson
2011-05-10 14:14 ` Jérémie Roquet
2011-05-10 18:16   ` Richard Hartmann
2011-05-11  1:00   ` Wayne Davison
2011-05-27 15:09     ` Richard Hartmann
2011-05-27 22:00       ` Wayne Davison
2011-05-28 11:51         ` Richard Hartmann
2011-05-10 15:26 ` Benjamin R. Haskell
2011-05-10 17:37   ` Mikael Magnusson
2011-05-10 18:16     ` Richard Hartmann
2011-05-10 18:58       ` Benjamin R. Haskell
2011-05-10 22:27         ` Richard Hartmann

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).