>> You might try wrapping it in an escape() call:
>>
>>   map <leader>e :e <c-r>=escape(expand("%:p:h"), "")."/"<cr>

Hrm...an extra space seems to be missing from there.  I guess 
that's what I get for typing at 3:00am while feeding the kid. 
That should have been

   map <leader>e :e <c-r>=escape(expand("%:p:h"), " ")."/"<cr>
                                                   ^
to instruct Vim to escape spaces.  This should change

> ":e /home/xx/backup_Fri Sep 18 19:32:14 CST 2009/test/"

into

   :e /home/xx/backup_Fri\ Sep\ 18\ 19:32:14\ CST\ 2009/test/

which then does allow me to hit tab/^D to do filename expansion 
within such a directory.  At least on the Linux box I've got 
here. Not sure how it behaves in Win32.

-tim



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

Reply via email to