Vim Tips Wiki


1,624pages on
this wiki
Add New Page

Use this page to discuss script 3641 AtomicSave: save files atomically using ":w"

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


Bugs for this script should be reported to the author via email.

The email address is available here:

Unfortunately, this script does not preserve permissions and files will lose their executable state (script version 0.9, on Unix based systems). Fixed in 0.9.1
Version 0.9.1 is identical to 0.9.0 on . Script upload error?
Ooops. Guess I uploaded the wrong one. I fixed it. Sorry it took so long, I had no idea. --December 20, 2012‎

This script appears to destroy symlinks on save, it will replace the link with a copy of the file it used to link to. Should at least warn about this on the script page. --March 29, 2013

That's definitely a bug. It should read the link and write to the destination. Hopefully I can be get around to fixing it later today, but no promises. --April 20, 2013

I know nothing of vim scripting, but I added my own hacky workaround that checks the file type and reverts to a regular save if it is a symlink or other non-"file" file. "Works For Me"™ --May 29, 2013

Actually the solution is just to replace calls to expand() with calls to resolve(expand()). I've done that now.


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki