How to prevent vim from creating (and leaving) temporary files?

前端 未结 7 2017
时光取名叫无心
时光取名叫无心 2020-11-28 01:09

Why does vim create ~ files? Is there a way to disable that?

If it\'s for backup (or something), I use git for that.

Also, thes

7条回答
  •  心在旅途
    2020-11-28 01:56

    ; For Windows Users to back to temp directory

    set backup
    set backupdir=C:\WINDOWS\Temp
    set backupskip=C:\WINDOWS\Temp\*
    set directory=C:\WINDOWS\Temp
    set writebackup
    

提交回复
热议问题