gVim on Windows

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions gVim on Windows
# 1  
Old 02-08-2007
Question gVim on Windows

Have you used gVim editor on Windows (xp)? I am talking about the GUI version of vim that you can click the icon on desktop and the gVim editor pops-up and you can create/edit files.

Here's my problem: When I use vim editor on cygwin to create/edit files the file creation mask is set to a specific value (in my case 077), so when I create/edit files, this file creation mask forces the file to be created within that mask.

However, when I open the gVim (by clicking the icon) and edit or create files it always overwrites the file permissions if the file already exists or when I create a new file, it sets the file permissions to some values that I don't like.

I am sure there is a way to tell gVim to comply to some specific file creation mask instead of a default. I made research online and tried to modify the .vimrc or _vimrc file but without success..

Does anyone know how to solve that problem..?

Thanks in advance..
# 2  
Old 02-08-2007
If you mean when you open the file in the windows gVim it destroys the permissions, that is expected. Windows doesn't know about or understand the "Unix" permissions cygwin uses.
# 3  
Old 02-08-2007
Quote:
Originally Posted by reborg
If you mean when you open the file in the windows gVim it destroys the permissions, that is expected. Windows doesn't know about or understand the "Unix" permissions cygwin uses.
actually I thought about that.

Just as in unix/cygwin we place a
Code:
umask 077   # or some other value

in the .profile/.bash_profile to overwrite the file creation mask, is there also a similar config file on windows that we can modify the file creation mask? I realized Windows (gVim) always sets the file permissions to a specific value, which means it has a default..

regards,
# 4  
Old 02-08-2007
No, it doesn't mean that it has a default in windows, it means that cygwin interprets a windows file as having a default set of permissions.

Take for example the execute bit, there is no equivalent in windows for that. Windows handles this on filename alone.

EDIT: just though of something...isn't there a gvim in the cygwin repositories?
If there is you could just run the cygwin X11 version of gvim and you'd have the menus et al. without having to worry about the windows behaviour.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing GVIM From Within A Live Script

Hey all, I work in a group environment where multiple people may end up editing the same file. We have measures in place so no two people can edit the same file at once. I have a script that does the following: call: script file The script will backup the file, Moves the file to a... (2 Replies)
Discussion started by: Brusimm
2 Replies

2. UNIX for Dummies Questions & Answers

Save and Exit Gvim

Hi, Dummy here! I have a file in my directory named "jest". I wonder why I couldn't save change by using Shift + z + z which I used to do. But it work fine with :wq! command. The second thing is, after several time of accessing the file, I notice my directory appears many files named jest~,... (1 Reply)
Discussion started by: Xierian
1 Replies

3. Windows & DOS: Issues & Discussions

gVim on windows 7 64 constantly overwrites symbolic and even hard links

I use sugarsync to sync my vimrc across computers. I keep the _vimrc file in a syncing folder and in my home folder, I have a symbolic link ~\_vimrc pointing to ~\Synced Docs\_vimrc. On my mac I have a .vimrc symbolic link pointing at the _vimrc file. On the pc side, every time I open the _vimrc... (3 Replies)
Discussion started by: dp88
3 Replies

4. UNIX and Linux Applications

GVIM with tabs

Hi People, Does gvim latest versions support tabs. I would like to open different files in tabs rather than new windows or split windows. I would like to whether the current version supports it, if it doesn't then how to add such feature. Thanks, :) (2 Replies)
Discussion started by: rimser9
2 Replies

5. UNIX and Linux Applications

Gvim doesn't work properly

Hello All, I am using gvim ( redhat linux machine). backspace doesnot work properly. can some boby suggest a solution ? i have checked with older version. backspace works in it. Thanks Shiv (1 Reply)
Discussion started by: shiv.emf
1 Replies

6. Shell Programming and Scripting

GVIM keyboard shortcuts

Hi all, I am new to linux, can anybody send any link for "GVIM" keyboard shortcuts. (1 Reply)
Discussion started by: balaramaiah.t
1 Replies

7. Windows & DOS: Issues & Discussions

Unix format in gVim

I need to be very careful to keep ^M characters out of files. In gVim, I can change the file format to Unix easily enough, but is there any way to make Unix the default format? I can see "startup options" in the menu, but this takes me to some meaningless config file. I believe my config value... (1 Reply)
Discussion started by: 68ST0X20
1 Replies

8. Windows & DOS: Issues & Discussions

gVim creates and leaves strange tilde ~ files in Windows

Hey folks, I have used gVim in Windows for many years but I have never found an answer to a very simple question I am going to ask you guys... My question is if there is a way to eliminate the creation of those ~ files that gVim creates in Windows. If you have ever used gVim in Windows you... (2 Replies)
Discussion started by: ghbarratt
2 Replies

9. Solaris

how to add gvim in solaris 5.8

Hi, can someone help me out how to load gvim? I am using solaris 5.8 . (1 Reply)
Discussion started by: adityam
1 Replies

10. Red Hat

Need to get Gvim on Linux enterprise

I have a linux Enterprise Server Version 3 (ES) . It does not have Gvim on it. Can someone tell me how I can get Gvim on it please. I have spent a fair bit of time researching this and have not figured it out. I am probably missing something simple. Frank (1 Reply)
Discussion started by: frankkahle
1 Replies
Login or Register to Ask a Question