Loading ...
Sorry, an error occurred while loading the content.

80912Re: Problems with netrw directory listing

Expand Messages
  • Charles E Campbell Jr
    Jun 4 8:19 AM
    • 0 Attachment
      Gary Johnson wrote:

      >On 2007-06-03, Seth Mason <seth@...> wrote:
      >
      >
      >>
      >> It seems like the spaces in the directory name is causing problems.
      >> If I open a file in the directory and then use ':cd %:h' everything
      >> works fine so it seems like the problem is not with vim(?).
      >>
      >> Any help or direction to go from here would be greatly appreciated.
      >>
      >>
      >
      >I see the problem. I believe it is a bug in autoload/netrw.vim (at
      >line 1593 in version 109) in the definition of the c command:
      >
      > nnoremap <buffer> <silent> c :exe "cd ".b:netrw_curdir<cr>
      >
      >Any spaces in b:netrw_curdir are not escaped and the directory name
      >is not in quotes, so the cd command sees any spaces as separators.
      >
      >
      >

      Please try netrw v110g available from my website:
      http://mysite.verizon.net/astronaut/vim/index.html#NETRW

      I've tested the fix under Linux; please try it out under XP.

      Regards,
      Chip Campbell
    • Show all 4 messages in this topic