Re: Can map key in one vimrc file but not another (?)
- Thanks - that seems to be it.
"Benji Fisher" <benji@...> wrote in message
> On Tue, Jul 27, 2004 at 01:26:10PM -0400, Joe wrote:apply
> > I'm using vim 6.2 under Cygwin on XP.
> > I want to map ^G to do something while in insert mode and I want it to
> > to all users.says
> > I have the VIM environment varaible set to /usr/local and vim --version
> > it will read $VIM/vimrc (no dot) first.work -
> > I put this in $VIM/vimrc (/usr/local/vimrc):
> > :imap <C-G> ....
> > Then I start vim and type :imap and it shows the map - but it doesn't
> > it does nothing.then
> > (There are other non-insert mode maps in $VIM/vimrc that DO work.)
> > Then I delete that line from $VIM/vimrc and put it in $HOME/.vimrc and
> > start vim and it does work!
> > Why would it work in $HOME/.vimrc but not in $VIM/vimrc?
> :help compatible-default
> HTH --Benji Fisher