[bug] --remote-silent

32 views
Skip to first unread message

nickles

unread,
Feb 6, 2010, 6:35:58 PM2/6/10
to vim_dev
On Windows XP, with gvim 7.2-356 (and before), when using the
following command line to edit the specified file

gvim d:\music\soldiers\USSR\(Kazach'ja).xml

gvim will open with an empty buffer named

"USSR(Kazach'ja).xml".

This behavior is not observed when gvim is called with the same file
name but w/o the "--remote-silent" option.

A workaround for the problem is to insert a backslash in the middle of
"\(", resulting in the following file name:

d:\music\soldiers\USSR\\(Kazach'ja).xml.

nickles

Valery Kondakoff

unread,
Feb 8, 2010, 12:15:16 PM2/8/10
to vim...@googlegroups.com
On 07.02.2010 2:35, nickles wrote:
> On Windows XP, with gvim 7.2-356 (and before), when using the
> following command line to edit the specified file
> gvim d:\music\soldiers\USSR\(Kazach'ja).xml
> gvim will open with an empty buffer named
> "USSR(Kazach'ja).xml".

I can confirm this. Here is my message to the list from May 5, 2008:

-----
If I'm trying to open a file like this:
gvim.exe --remote-tab-silent "c:\MP3\XXX\LIZA MINNELLI\(1989)
RESULTS\info.txt"
gVim tries to open "\MP3\XXX\LIZA MINNELLI(1989) RESULTS\info.txt"
resulting in a new file.

If I'm trying to open the same file without the --remote-tab-silent
option the info.txt file is opened as expected.
It seems, when the --remote-tab-silent option is used, the '\('
combination is counted as an escape-sequence, and this is wrong.
Can we consider this as a bug?
gVim 7.2, Win Vista HP SP1.
-----

--
Best regards,
Valery Kondakoff

PGP key:
http://pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0xEEDF8590
np: Bark Psychosis'1994 (Hex) - A Street Scene

Bram Moolenaar

unread,
Feb 8, 2010, 3:05:53 PM2/8/10
to Valery Kondakoff, vim...@googlegroups.com

Valery Kondakoff wrote:

> On 07.02.2010 2:35, nickles wrote:
> > On Windows XP, with gvim 7.2-356 (and before), when using the
> > following command line to edit the specified file
> > gvim d:\music\soldiers\USSR\(Kazach'ja).xml
> > gvim will open with an empty buffer named
> > "USSR(Kazach'ja).xml".
>
> I can confirm this. Here is my message to the list from May 5, 2008:
>
> -----
> If I'm trying to open a file like this:
> gvim.exe --remote-tab-silent "c:\MP3\XXX\LIZA MINNELLI\(1989)
> RESULTS\info.txt"
> gVim tries to open "\MP3\XXX\LIZA MINNELLI(1989) RESULTS\info.txt"
> resulting in a new file.
>
> If I'm trying to open the same file without the --remote-tab-silent
> option the info.txt file is opened as expected.
> It seems, when the --remote-tab-silent option is used, the '\('
> combination is counted as an escape-sequence, and this is wrong.
> Can we consider this as a bug?
> gVim 7.2, Win Vista HP SP1.
> -----

Yeah, this looks like a bug. Did you try doubling the backslash?
Or replace the ( with a ?.

--
$ echo pizza > /dev/oven

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Valery Kondakoff

unread,
Feb 8, 2010, 3:14:57 PM2/8/10
to vim...@googlegroups.com
On 08.02.2010 23:05, Bram Moolenaar wrote:
> Yeah, this looks like a bug. Did you try doubling the backslash?

Yes, the file is loaded successfully when the backslash is doubled.

--
Best regards,
Valery Kondakoff

np: The High Violets'2006 (To Where You Are) - Invitation

Axel

unread,
Nov 4, 2011, 6:36:26 AM11/4/11
to vim...@googlegroups.com
This error still appears in 7.3-353. Any plans for a fix?

Yukihiro Nakadaira

unread,
Nov 4, 2011, 9:10:35 AM11/4/11
to vim...@googlegroups.com
For --remote, files are opened with :drop command on remote vim.
And :drop command removes backslash followed by special character.
This behavior also occur for ":edit aaa\(bbb).txt".
:help filename-backslash
Vim handles '(' as special character because it is not included in the
default 'isfname' value.
Add "set isfname+=(" in vimrc for workaround.

--
Yukihiro Nakadaira - yukihiro....@gmail.com

Axel

unread,
Nov 4, 2011, 10:13:16 AM11/4/11
to vim...@googlegroups.com
Thanks Yukihiro, that solved it!

Best regards

Axel

unread,
Nov 30, 2011, 1:14:07 PM11/30/11
to vim...@googlegroups.com
Addendum

Adding "(" to 'isfname' obviously breaks helpgrep's functionality, resulting in errors

"E55: unmatched \)"

followed by

"E480: No match: ..."
Reply all
Reply to author
Forward
0 new messages