Thanks Tony and Matt, it worked out well.
--gs On Apr 11, 3:01 am, Tony Mechelynck <[email protected]> wrote: > On 11/04/09 07:37, gs wrote: > > > > > Hi, > > > I'm currently running gvim version 7.2 on vista . I use cygwin (with X > > server ) and edited my .tcshrc file to > > > alias gvim '/cygdrive/c/Program\ Files/Vim/vim72/gvim' > > That's the native-Windows gvim. It is not totally impossible to call it > from Cygwin, but it's fraught with difficulties. For instance, it has > absolutely no understanding of Unix-like directory and file pathnames. > > I recommend to use native-Windows vim.exe and/or gvim.exe with Windows > cmd.exe, and Cygwin Console Vim (as downloaded from the Cygwin site) > with Cygwin bash. > > > > > It works fine, but I now have created a gvimrc file from > > gvimrc_example.vim but do not know what to call it or where to put it. > > The reading says, on Windows it should be called _gvimrc (without .vim > > extension) and should be put in the home directory. Is that the cygwin > > home directory or the directory vim72 mentioned above, I have tried > > both and the gvimrc settings do not take. > > > any ideas? > > > thanks, > > -gs > > On any system, the gvimrc should be in whatever directory Vim sees as > $HOME. On Windows, if you have both a "native Windows" version and a > "Cygwin" version, those locations are different, but if you want to use > a single script (and include ":if has()" and/or ":if exists()" > statements if and where needed to resolve any incompatibilities), you > can create a Cygwin soft link from the Cygwin location to the Cygwin > name from the Windows location (see also "man cygpath" at the Cygwin > bash prompt). > > So you should create your Windows gvimrc by using (in Vim) > > :e ~/_gvimrc > > If you have a Cygwin gvim (for Cygwin X11) and no Windows gvim, or if > you want to use different gvimrc scripts in Cygwin/X11 gvim and in > Native-Windows gvim, you can create your Cygwin gvimrc with > > :e ~/.gvimrc > > Otherwise, you can link from the Cygwin location to theWindows location > after ascertaining what Cygwin Vim calls $HOME and what Native-Windows > Vim calls _its_ $HOME. > > Note that Windows gvim will look for .gvimrc if it doesn't find _gvimrc, > and Cygwin/X11 gvim will look for _gvimrc if it doesn't find .gvimrc . > But in either case, only in its own $HOME location. > > Best regards, > Tony. > -- > BEDEVERE: Why do you think she is a witch? > SECOND VILLAGER: She turned me into a newt. > BEDEVERE: A newt? > SECOND VILLAGER: (After looking at himself for some time) I got better. > "Monty Python and the Holy Grail" PYTHON (MONTY) > PICTURES LTD --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
