Skip to content

Instantly share code, notes, and snippets.

@dheysonalves
Created September 15, 2019 01:54
Show Gist options
  • Save dheysonalves/a804e68aec1cdc05139ae01867abae5d to your computer and use it in GitHub Desktop.
Save dheysonalves/a804e68aec1cdc05139ae01867abae5d to your computer and use it in GitHub Desktop.
To Clean out ALL vim Swap Files in a Directory:

To Clean out ALL vim Swap Files in a Directory: If you are sure you don’t need any vim swap files in a directory tree and want to get rid of them, you can use the following command in the directory while vim is not running (not even in another window or even a different login session):

find . -type f -name "*.sw[klmnop]" -delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment