With pleasure!
:e $MYVIMRC
and then remove the line that sources mswin.vim, save it and reload Vim!
Ben.
You may want to remove the "behave mswin" line as well.
Regards,
Gary
NEVER EVER make changes of your own in any file in $VIMRUNTIME or any of
its subdirectories, because the next update of that file will silently
make your changes disappear. Now you don't know when that "next update"
will happen. It will certainly be not later than when you install the
next version of Vim, and by that time you won't understand why suddently
"vim doesn't behave the way it used to", and you probably won't remember
what and where all your own-coded changes were.
The other directories mentioned in 'runtimepath' should be used for that
(or your ~/[._]vimrc and/or ~/[._]gvimrc), Vim won't alter that. Each of
these 'runtimepath' trees has a slightly different purpose:
~/.vim (on Unix) or ~/vimfiles (on Windows): full-fledged scripts
specific to one user
$VIM/vimfiles: full-fledged system-wide scripts
$VIMRUNTIME: scripts (and other files) distributed together with Vim
(under Windows also the executables), AND NOTHING ELSE.
$VIM/vimfiles/after: system-wide small changes to any or all of the above
~/.vim/after or ~/vimfiles/after: user-specific small changes to any of
the above.
So: _don't_ add, remove or change lines here or there in
$VIMRUNTIME/mswin.vim, and don't replace the file by a zero-length file:
sooner or later your changes will be undone with no warning. If you
(like me) don't like what mswin.vim does, just make sure your vimrc
doesn't call it.
Best regards,
Tony.
--
Christ:
A man who was born at least 5,000 years ahead of his time.
I agree with Tony. You don't need to change anything in the Vim main
directory. The best way to do is make a "vimfiles" folder in besides
the Vim directory and change your "_vimrc" or "_gvimrc" to do not call
"mswin.vim". You don't need to delete the line "behave mswin" too. It
is used to many things than key mapping. So, the best way is to
override the default configuration in other way.
Regards.
2008/9/27 Tony Mechelynck <antoine.m...@gmail.com>:
--
Alessandro Antonello
The ":behave" command is actually a shortcut for setting four options at
the same time.
These options' defaults are
:set selectmode= keymodel= selection=inclusive
and (for Windows)
:set mousemodel=popup
or (for Unix)
:set mousemodel=extend
":behave mswin" is equivalent to
:set selectmode=mouse,key mousemodel=popup
:set keymodel=startsel,stopsel selection=exclusive
":behave xterm" is equivalent to
:set selectmode= mousemodel=extend
:set keymodel= selection=inclusive
I use neither, but
:set selectmode=key,mouse mousemodel=popup
:set keymodel=startsel selection=inclusive
which is a sort of middle-ground between them. Unlike mswin.vim, none of
the above clobbers any useful keystrokes so I recommend that you study
what these options do and make your own choice.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
190. You quickly hand over your wallet, leather jacket, and car keys
during a mugging, then proceed to beat the crap out of your
assailant when he asks for your laptop.