Discussion:
What *exactly* does ":behave mswin" do?
Brian Sullivan
2010-09-21 02:41:36 UTC
Permalink
I've seen lots of references to it, and even had it enabled on my
Windows installations of Vim. But I can't find in the documentation
exactly what changes it that setting makes to the Vim environment.
Can someone enlighten me?
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Vivek Bhat
2010-09-21 03:35:34 UTC
Permalink
Post by Brian Sullivan
I've seen lots of references to it, and even had it enabled on my
Windows installations of Vim. But I can't find in the documentation
exactly what changes it that setting makes to the Vim environment.
Can someone enlighten me?
Basically it is to enable the way in which you work on MS environment.
Ctrl-P (copy), Ctrl-V (paste).. etc. Remove that and you
cannot use these windows shortcuts and will have to use only vim way
(yy, P). But even in mswin mode vim commands will work.
Thanks,
Vivek
Post by Brian Sullivan
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Ben Fritz
2010-09-21 13:18:29 UTC
Permalink
Post by Brian Sullivan
Post by Brian Sullivan
I've seen lots of references to it, and even had it enabled on my
Windows installations of Vim.  But I can't find in the documentation
exactly what changes it that setting makes to the Vim environment.
Can someone enlighten me?
Basically it is to enable the way in which you work on MS environment.
Ctrl-P (copy), Ctrl-V (paste).. etc. Remove that and you
    cannot use these windows shortcuts and will have to use only vim way
No, this is incorrect. :behave mswin does not do this, the mswin.vim
file in the Vim runtime that some people source does this. See John's
answer or the :help for :behave.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Brian Sullivan
2010-09-21 13:44:10 UTC
Permalink
Thanks, guys! ":help :behave" got me exactly the information I was
looking for. I was just typing ":help" and / searching for "behave",
which didn't get me what I wanted, obviously.

Brian
Post by Ben Fritz
Post by Brian Sullivan
Post by Brian Sullivan
I've seen lots of references to it, and even had it enabled on my
Windows installations of Vim.  But I can't find in the documentation
exactly what changes it that setting makes to the Vim environment.
Can someone enlighten me?
Basically it is to enable the way in which you work on MS environment.
Ctrl-P (copy), Ctrl-V (paste).. etc. Remove that and you
    cannot use these windows shortcuts and will have to use only vim way
No, this is incorrect. :behave mswin does not do this, the mswin.vim
file in the Vim runtime that some people source does this. See John's
answer or the :help for :behave.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Gary Johnson
2010-09-21 14:21:04 UTC
Permalink
Post by Brian Sullivan
Post by Ben Fritz
Post by Brian Sullivan
Post by Brian Sullivan
I've seen lots of references to it, and even had it enabled on my
Windows installations of Vim.  But I can't find in the documentation
exactly what changes it that setting makes to the Vim environment.
Can someone enlighten me?
Basically it is to enable the way in which you work on MS environment.
Ctrl-P (copy), Ctrl-V (paste).. etc. Remove that and you
    cannot use these windows shortcuts and will have to use only vim way
No, this is incorrect. :behave mswin does not do this, the mswin.vim
file in the Vim runtime that some people source does this. See John's
answer or the :help for :behave.
Thanks, guys! ":help :behave" got me exactly the information I was
looking for. I was just typing ":help" and / searching for "behave",
which didn't get me what I wanted, obviously.
In the future, if you're looking for help on some topic such as
behave, just type

:help behave

and Ctrl-D to see a list of all help topics containing that word.
(In the case of behave, there is only one.) If that doesn't yield
any results, which is often the case when you don't Vim's term for
something, you can search the entire help system for a word or
pattern using :helpgrep.

Regards,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
John Beckett
2010-09-21 04:05:32 UTC
Permalink
What *exactly* does ":behave mswin" do?
At ':help :behave' we see that it sets "behavior for mouse and
selection". It then shows what I believe are the precise changes
(it sets certain values for four options). It has nothing to do
with Ctrl-C etc.

It is a long time since I have seen it, but I think that mswin
makes a selection behave like in Notepad: if you select some
text and type 'y', the selected text is replaced with 'y'. For
proper use of Vim, I strongly recommend removing mswin and
taking the trouble to learn the Vim procedures.

I will add that I use the Ctrl-C/Ctrl-V mappings because that
battle has been lost: I suspect that all apps written in the
last ten years on Mac/Linux/Windows use those keys. I was using
Konversation a while back (a Linux IRC client), and I wondered
how I could copy some text. Sure enough, Ctrl-C worked.

John
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Loading...