On Wed, Jan 7, 2009 at 10:06 PM, Tony Mechelynck
<[email protected]> wrote:
>
> I think I saw somewhere in the help that on Dos/Windows, Vim treats a
> double backslash in a filename as identical to a single backslash;
> however I cannot find it back
>

Yes.
:help dos-backslash

2. Using backslashes                                    *dos-backslash*

Using backslashes in file names can be a problem.  Vi halves the number of
backslashes for some commands.  Vim is a bit more tolerant and does not remove
backslashes from a file name, so ":e c:\foo\bar" works as expected.  But when
a backslash occurs before a special character (space, comma, backslash, etc.),
Vim removes the backslash.  Use slashes to avoid problems: ":e c:/foo/bar"
works fine.  Vim replaces the slashes with backslashes internally to avoid
problems with some MS-DOS programs and Win32 programs.

When you prefer to use forward slashes, set the 'shellslash' option.  Vim will
then replace backslashes with forward slashes when expanding file names.  This
is especially useful when using a Unix-like 'shell'.

So, I presume \\\ would be treated as equivalent to \\ ???

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

Reply via email to