Hi, I found this strange thing that probably isn't very important, but
still. Also it might be not a bug, but really misguided feature.

Suppose you have a file named `\` (backslash). On Linux. You want to
edit it, OK, `:e \\` works perfectly (and that's what autocomplete
proposes, btw). `:e \\\` and `:e \\\\` both  try to edit "two
backslashes".

Now you want to edit a file and then do something else.
`:e \\ | echo 'x'` produces E172: Only one file name allowed
`:e \\| echo 'x'` edits file `| echo 'x'`
`:e \\\ | echo 'x'` edits file `\ `, as it's supposed to.
`:e \\\| echo 'x'` edits file `\| echo 'x'`
And so on. Also, changing `echo 'x'` to `echo "x"` changes some of the
behaviours...

So, how do I edit a file called Backslash? And is it really a bug, or
just Vim trying to be too clever?

:version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep  7 2009 15:26:14)
Included patches: 1-245

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

Raspunde prin e-mail lui