zsh-users
 help / color / mirror / code / Atom feed
* Edit result of last command
@ 2004-11-29 19:35 zzapper
  2004-11-29 19:58 ` Thomas Köhler
  2004-11-29 20:02 ` Bart Schaefer
  0 siblings, 2 replies; 9+ messages in thread
From: zzapper @ 2004-11-29 19:35 UTC (permalink / raw)
  To: zsh-users

Hi

say I've done a command a find/ls whatever

eg 
>ls *add*
which returns
addition.html

I can then type
> vi $(!!)

But that's way too tiring

So I wrote the following function vr

function vr () { 
gvim.exe $($(history -1 | sed "s/^ *[0-9]* *//g")) &
}

This does the trick, but how would you zedii do it?
zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


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

end of thread, other threads:[~2004-12-01  2:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 19:35 Edit result of last command zzapper
2004-11-29 19:58 ` Thomas Köhler
2004-11-29 20:02 ` Bart Schaefer
2004-11-29 21:34   ` Juhapekka Tolvanen
2004-11-30  2:06     ` Bart Schaefer
2004-11-29 21:53   ` zzapper
2004-11-30 13:29   ` zzapper
2004-11-30 17:33     ` zzapper
2004-12-01  2:38     ` Bart Schaefer

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).