Disabling swap files creation in vim

后端 未结 10 1361
孤独总比滥情好
孤独总比滥情好 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:19

    I found the answer here:

    vim -n 
    

    opens file without swapfile.

    In addition:

    set dir=/tmp
    

    in .vimrc creates the swapfiles in /tmp.

提交回复
热议问题