This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Why do file permissions change after editing a file with vim?
- From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder at niaid dot nih dot gov>
- To: "Ross Jordan" <rjordan at numb dot ca>, <cygwin at cygwin dot com>
- Date: Sun, 11 Nov 2007 17:19:11 -0500
- Subject: RE: Why do file permissions change after editing a file with vim?
- References: <20071110080026.GB8564@numb.ca>
From: Ross Jordan; Sent: Saturday, November 10, 2007 3:00 AM
> When I modify files with cygwin's vim, they become inaccessible. It
> seems the permissions are getting changed when I save the file. Any
> idea why this is happening? This does not happen from a bash shell,
> only when I directly launch vim from a windows cmd.exe window. See
> below.
I have no idea why. But it would seem to me that that using the
native Windows version of vim in a cmd.exe shell might possibly avoid
this. Another thing to try would be to launch vim via a batch file
like this.
@echo off
bash -c vim %1 %2 %3 %4 %5 %6 %7 %8 %9
- Barry
Disclaimer: Statements made herein are not made on behalf of NIAID.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/