Set mouse and selection behavior
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Set mouse and selection behavior.
Mouse and selection options
- selectmode
- mousemodel
extend- keymodel
- selection
inclusive
Command entered · ready to apply
Mouse and selection options
- selectmode
- mousemodel
extend- keymodel
- selection
inclusive
Command line
- Typed text
:behave mswin- Insertion offset
13
:behave mswin changes the four options to the documented MS-Windows selection behavior.
Mouse and selection options
- selectmode
mouse,key- mousemodel
popup- keymodel
startsel,stopsel- selection
exclusive
Before & after
Before
Mouse and selection options
- selectmode
- mousemodel
extend- keymodel
- selection
inclusive
After
Mouse and selection options
- selectmode
mouse,key- mousemodel
popup- keymodel
startsel,stopsel- selection
exclusive
Documentation-backed illustration. the initial options match :behave xterm; :behave is supported. :behave mswin changes the four options to the documented MS-Windows selection behavior. Primary help: :behave.
alpha
beta
gammaCursor on line 1, column 1Details & Vim help
Set mouse and selection behavior. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :be[have] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.