On Sat, Sep 19, 2009 at 5:04 PM, Tim Chase <[email protected]> wrote: > >> I use this map a lot, but it seems not working with directory name >> contains space >> map ,e :e <C-R>=expand("%:p:h") . "/" <CR> > > You might try wrapping it in an escape() call: > > map <leader>e :e <c-r>=escape(expand("%:p:h"), "")."/"<cr> > > Suggestion behavior may change between *nix-like and Win32...I > don't have my Win32 box at hand to test.
Sorry, I might not make myself clear enough. when I press ",e", it does list something like ":e /home/xx/backup_Fri Sep 18 19:32:14 CST 2009/test/" but when I type <CTRL+D>, (list 'test' directory), it stucks with no output, that's annoying... Thanks -- FIXME if it is wrong. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
