Cory Echols wrote:
> I can't get ex-command expansion of the '%' token to work 
> with this vim tip: 
>
http://vim.wikia.com/wiki/Display_shell_commands%27_output_on_Vim_window
.

Teemu Likonen:
Are you reading this? Please help fix your tip!

Cory:
Thanks for reporting the problem. I haven't tried the script, but a
sanity check immediately fails. Entering the following gives the E499
error you mentioned:

 :new
 :r !cat %

As you said, that's because the command is executed in a scratch window,
and there is no file name. However, using # will work (assuming the
alternate buffer is the one you want). That is, use # instead of %.

More problems: As Charles said, the escape() is going to cause grief. I
just looked through all the posts on the git mailing list (see the
discussion on the proposed new tips page, via link at top of tip). They
don't seem to think % is a problem, but have various other suggestions.

I don't have time to fix all the new tips that people drop on the Vim
Tips wiki. If we can't get this working before March, I'm going to
suggest it gets removed. If anyone discovers something, please let us
know.

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to