Disabling swap files creation in vim

后端 未结 10 1341
孤独总比滥情好
孤独总比滥情好 2020-12-12 09:06

Is there a way to disable .swp files creation in vim? or at least create them all in one place so I can find and delete them easily.

I find them especia

10条回答
  •  借酒劲吻你
    2020-12-12 09:16

    If you put set directory="" in your exrc file, you will turn off the swap file. However, doing so will disable recovery.

    More info here.

提交回复
热议问题