vim / vim-win32-installer

Vim Win32 Installer
2.22k stars 243 forks source link

[Bug Report] After I close vim for windows, files with ~ appeard #309

Closed CoolPlayLin closed 1 year ago

CoolPlayLin commented 1 year ago

Steps to reproduce

https://github.com/vim/vim-win32-installer/assets/96709586/419f59f1-7ad4-4569-be09-4c01547895f4

Expected behaviour

https://github.com/vim/vim-win32-installer/assets/96709586/5db075cf-a2f2-4ed6-b149-17f87b34f4c2

Version of Vim

9.0.1579

Environment

Installer Package: 64-bit installer

k-takata commented 1 year ago

The default .vimrc (C:\Program Files\Vim\_vimrc) includes vimrc_example.vim, and it sets the `backup' option. If you don't like it, you can simply create your own .vimrc.

chrisbra commented 1 year ago

you can check the :verbose :set backup? command to check where this has been set (which will most-likely be, as Ken mentioned vimrc_example.vim)

So please configure your vim and un-set this option if you do not want this.

Note also: the installer asks whether you want to source the vimrc_example.

Closing