Disabling swap files creation in vim
Asked 07 September, 2021
Viewed 2.5K times
  • 55
Votes

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 especially annoying when I copy the parent directory while editing at the same time. Of course I know that I can use find -exec to find and delete them. But I want a more practical solution.

10 Answer