I’ve got this password file, and when editing this in vim I want to make sure vim does not create a swap/backup file. How to set this?
I have seen this:
How to prevent vim from creating (and leaving) temporary files?
But I do not want this for all files, just for a specific one. Is this possible?
If your file can contain comments you can set the nobackup and noswapfile by adding a modeline to the start or end of the file.
Something like this: