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

62910Issue 28 in vim: out of the box, gVim 7.3.46 for Win32 cannot write swap files on Windows 7

Expand Messages
  • vim@googlecode.com
    Oct 21, 2011
      Status: New
      Owner: ----
      Labels: Type-Defect Priority-Medium

      New issue 28 by metaed: out of the box, gVim 7.3.46 for Win32 cannot write
      swap files on Windows 7

      What steps will reproduce the problem?

      1. install Vim on Windows 7
      2. start gVim
      3. insert text in the buffer

      What is the expected output? What do you see instead?

      The unexpected output is the message:
      E303: Unable to open swap file for "[No name]", recovery impossible

      What version of the product are you using? On what operating system?

      Vim 7.3.46, self identifying as:
      Vim 7.3 (2010 Aug 15, compiled oct 27 2010 17:59:02)
      MS-Windows 32-bit GUI version with OLE support
      Included patches: 1-46
      Compiled by Bram@KIBAALE

      Please provide any additional information below.

      gVim uses the default setting for the "directory" option, that is, it
      gets ".,c:\\tmp,c:\\temp", which originates from os_dos.h.

      Unfortunately, none of these were writable on a vanilla Windows 7 install.
      cwd is C:\Windows\system32, and neither c:\tmp nor c:\temp exist.

      This differs from the behavior of the identical installer package on
      Windows XP. cwd on Windows XP seems to originate from the HOME environment
      variable, which is writable.

      A good solution would cause installs on Windows 7 to have cwd be from HOME
      on startup, just as on Windows XP.

      Changing the "Compatibility Mode" for Vim under Windows 7 to "Windows XP
      (Service Pack 3)" does not correct cwd, so it is not a useful workaround.
      The same is true of changing "Start In" on the gVim shortcut from empty
      to %HOME%.

      Adding a "set directory" to .vimrc and appending a writable directory is a
      good temporary workaround. Both of these worked:

      set directory+=$HOME
      set directory+=$TEMP

      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 31 messages in this topic