Heading says it all really. Using Windows 7 and latest stable gvim, whenever I save (:w
) a file it's marked executable. I'm doing cross-platform development and it'd be nice if this didn't happen.
views:
61answers:
2by right, vi doesn't change the mode of the file.
what kind of vim are you using?
never had this kind of problem before.
@sceptics: The flag of the files are indeed set as executable. Do a ls -al
before and after re-saving the file to observe the issue. (install cygwin, or may be other *nix emulations)
@OP: the question have been raised several times in the past. I don't remember the conclusion on the subject. You should search vim mailing-lists archives (vim_use and vim_dev).
May be you can try to add an hook to your RCS (if it supports that) to proceed to a chmod -x
on file extensions that does not correspond to an executable (*.h, *.cpp, *.vim, ...), or on files that do not contain a shebang (unlike perl, I don't know if python source files may contain a shebang)