Wikia

Vim Tips Wiki

Changes: Script:3641

Edit

Back to page

(Bugs)
(Bugs)
 
(8 intermediate revisions by 4 users not shown)
Line 2: Line 2:
   
 
==Bugs==
 
==Bugs==
  +
'''Bugs for this script should be reported to the author via email.'''
  +
  +
The email address is available here: http://www.vim.org/account/profile.php?user_id=32777
  +
  +
----
 
<s>Unfortunately, this script does not preserve permissions and files will lose their executable state (script version 0.9, on Unix based systems).</s> Fixed in 0.9.1
 
<s>Unfortunately, this script does not preserve permissions and files will lose their executable state (script version 0.9, on Unix based systems).</s> Fixed in 0.9.1
 
<br />
 
<br />
Version 0.9.1 is identical to 0.9.0 on http://www.vim.org/scripts/script.php?script_id=3641 . Script upload error?
+
<s>Version 0.9.1 is identical to 0.9.0 on http://www.vim.org/scripts/script.php?script_id=3641 . Script upload error?</s>
  +
<br />
  +
Ooops. Guess I uploaded the wrong one. I fixed it. Sorry it took so long, I had no idea. --December 20, 2012‎
  +
----
  +
<s>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</s>
  +
  +
<s>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</s>
  +
  +
<s>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"™ http://pastebin.com/vmDwhhjX --May 29, 2013</s>
  +
  +
Actually the solution is just to replace calls to expand() with calls to resolve(expand()). I've done that now.
   
 
==Comments==
 
==Comments==

Latest revision as of 18:39, January 24, 2014

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 vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

BugsEdit

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

The email address is available here: http://www.vim.org/account/profile.php?user_id=32777


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 http://www.vim.org/scripts/script.php?script_id=3641 . 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"™ http://pastebin.com/vmDwhhjX --May 29, 2013

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

CommentsEdit

Around Wikia's network

Random Wiki