Preventing Windows version of Vim from destroying other file systems permissions
Posted
by
dborba
on Super User
See other posts from Super User
or by dborba
Published on 2010-08-30T23:05:51Z
Indexed on
2010/12/26
1:55 UTC
Read the original article
Hit count: 604
I am currently using the windows version of gVim to edit source files on a networked drive mapped to a linux system, as well as local files created in cygwin.
The problem is that the windows version of gVim destroys the original file permissions on the respective systems. IE: Files on cygwin are defaulted to 077. When edited by the windows version of vim they are saved as 777.This problem doesn't even occur when using ms-notepad (as well as all other editors I've tried), so I am not quite sure why gVim does it.
A possible solution would be to use cygwin's gVim for everything, but that's rather cumbersome as it requires running an x11 environment to support it, and it causes some problems when running some commands from within gVim (or vim for that matter) when working on the networked drive.
Any ideas how I might be able to maintain the existing file permissions?
Edit: This morning while on a different machine the problem with cygwin did not occur. Cygwin & gVim were the same version, however the other machine is running WinXP while the machine the problem is occurring on runs Win7.
© Super User or respective owner