On 07/07/08 10:13, ThoML wrote:
> Hi,
>
> I get an "E499: Empty file name for '%' or '#', only works with
> ':p:h'" when a directory/file name contains % and I try to open the
> file with --remote:
>
> start gvim -u NONE --noplugin
> cd foo%bar
> gvim --remote foo
> =>  E499
>
> I tried verbose=12 but don't get any hints what exactly is causing
> this.
>
> In the README for the patches for 7.2 I found
>   20111  7.2a.013  shellescape() does not escape "%" and "#" characters
>    1459  7.2a.014  problem with % in a message
>
> I don't know if this problem is related to either of them.
>
> Regards,
> Thomas.

In Vim, % usually means "the current file name". Here we have one Vim 
instance (the client) trying to pass to another instance (the server) a 
file name whose full name contains a percent sign -- and, I suppose, one 
of them is trying to replace that % by the name of the file it is 
currently editing -- but it is currently on a [No Name] buffer, whose 
"filename" is actually the empty string.

Best regards,
Tony.
-- 
WE'RE GOING TO THROW THE MX AWAY AFTER WE BUILD IT.  The MX is really
[Don't tell anybody!] just a "bargaining chip" in the nuclear-arms-
reduction talks with the Russians.  See, we have a problem with the
Russians.  They look at our leaders and they see, for example, George
Bush, who is really a fine and brave man but who happens to have this
unfortunate physical characteristic whereby when he talks he sounds as
though he just inhaled a helium party balloon.  If he ever becomes
President, the Russians will deliberately create nuclear crises just so
they can gather around the Hot Line with refreshments and listen to
George talk.
                -- Dave Barry, "At Last, the Ultimate Deterrent Against
                   Political Fallout"

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

Raspunde prin e-mail lui