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

Re: Directory Change Bug in Windows Gvim/Vim

Expand Messages
  • Bill McCarthy
    ... If you mean Windows Explorer, won t that set the current directory to C: Documents and Settings Bill Desktop ? What wrong with that? I would much rather
    Message 1 of 3 , Aug 3, 2008
    • 0 Attachment
      On Sun 3-Aug-08 3:17pm -0600, Bram Moolenaar wrote:
      > Bill McCarthy wrote:

      >> Opening a file with full path name changes the directory.
      >> For example:
      >>
      >> gvim -u NONE -N \vim\vimfiles\myfile.vim
      >>
      >> keeps my current directory. However,
      >>
      >> gvim -u NONE -N c:\vim\vimfiles\myfile.vim
      >>
      >> changes the directory, in vim, to c:\vim\vimfiles.

      > That is normal.
      >
      > Reason is that when Vim sees the full path it assumes it is invoked by
      > the Explorer, possibly from the desktop. There is no other way to
      > detect that.

      If you mean Windows Explorer, won't that set the current
      directory to "C:\Documents and Settings\Bill\Desktop"?

      What wrong with that? I would much rather that behavior
      than have Vim change directories on its own.

      --
      Best regards,
      Bill


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.