Why does Vim sometimes create .swp files?

Sometimes Vim creates a .swp file when I edit something, but not always. Why is this, and what causes Vim to create .swp files? It's bad to turn them off . Vimrc ?

+3


source to share


1 answer


Vim creates .swp

files for recovery . If you can't save, vim can recover (at least some) files.



The merits of turning them off depend on what you are doing. If you are using vim for anything that has an assembly, you are probably keeping your sources permanently (how long does it take for you to code and compile, build and run ut? This is probably not a clock). I hate swps because they always require me to tell the version control system to ignore them.

+5


source







All Articles