mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
Merge pull request #23054 from bfredl/nobehave
feat(ex_cmds)!: remove :behave
This commit is contained in:
@@ -3003,7 +3003,6 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
||||
arglist file names in argument list
|
||||
augroup autocmd groups
|
||||
buffer buffer names
|
||||
behave |:behave| suboptions
|
||||
breakpoint |:breakadd| and |:breakdel| suboptions
|
||||
cmdline |cmdline-completion| result
|
||||
color color schemes
|
||||
|
@@ -1159,7 +1159,6 @@ tag command action ~
|
||||
|:badd| :bad[d] add buffer to the buffer list
|
||||
|:balt| :balt like ":badd" but also set the alternate file
|
||||
|:bdelete| :bd[elete] remove a buffer from the buffer list
|
||||
|:behave| :be[have] set mouse and selection behavior
|
||||
|:belowright| :bel[owright] make split window appear right or below
|
||||
|:bfirst| :bf[irst] go to first buffer in the buffer list
|
||||
|:blast| :bl[ast] go to last buffer in the buffer list
|
||||
|
@@ -18,6 +18,13 @@ The following changes may require adaptations in user config or plugins.
|
||||
• "#" followed by a digit no longer stands for a function key at the start of
|
||||
the lhs of a mapping.
|
||||
|
||||
• `:behave` was removed. if you used `:behave mswin`, the following is equivalent: >vim
|
||||
|
||||
set selection=exclusive
|
||||
set selectmode=mouse,key
|
||||
set mousemodel=popup
|
||||
set keymodel=startsel,stopsel
|
||||
|
||||
==============================================================================
|
||||
ADDED FEATURES *news-added*
|
||||
|
||||
|
@@ -3589,7 +3589,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
stopsel Using a not-shifted special key stops selection.
|
||||
Special keys in this context are the cursor keys, <End>, <Home>,
|
||||
<PageUp> and <PageDown>.
|
||||
The 'keymodel' option is set by the |:behave| command.
|
||||
|
||||
*'keywordprg'* *'kp'*
|
||||
'keywordprg' 'kp' string (default ":Man", Windows: ":help")
|
||||
@@ -4168,21 +4167,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'mousehide' hide mouse pointer while typing text
|
||||
'selectmode' whether to start Select mode or Visual mode
|
||||
|
||||
The :behave command provides some "profiles" for mouse behavior.
|
||||
*:behave* *:be*
|
||||
:be[have] {model} Set behavior for mouse and selection. Valid
|
||||
arguments are:
|
||||
mswin MS-Windows behavior
|
||||
xterm Xterm behavior
|
||||
|
||||
Using ":behave" changes these options:
|
||||
option mswin xterm ~
|
||||
'selectmode' "mouse,key" ""
|
||||
'mousemodel' "popup" "extend"
|
||||
'keymodel' "startsel,stopsel" ""
|
||||
'selection' "exclusive" "inclusive"
|
||||
|
||||
|
||||
*'mousefocus'* *'mousef'* *'nomousefocus'* *'nomousef'*
|
||||
'mousefocus' 'mousef' boolean (default off)
|
||||
global
|
||||
@@ -4250,8 +4234,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
"g<LeftMouse>" is "<C-LeftMouse> (jump to tag under mouse click)
|
||||
"g<RightMouse>" is "<C-RightMouse> ("CTRL-T")
|
||||
|
||||
The 'mousemodel' option is set by the |:behave| command.
|
||||
|
||||
*'mousemoveevent'* *'mousemev'* *'nomousemoveevent'* *'nomousemev'*
|
||||
'mousemoveevent' 'mousemev' boolean (default off)
|
||||
global
|
||||
@@ -5013,8 +4995,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
backwards, you cannot include the last character of a line, when
|
||||
starting in Normal mode and 'virtualedit' empty.
|
||||
|
||||
The 'selection' option is set by the |:behave| command.
|
||||
|
||||
*'selectmode'* *'slm'*
|
||||
'selectmode' 'slm' string (default "")
|
||||
global
|
||||
@@ -5025,7 +5005,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
key when using shifted special keys
|
||||
cmd when using "v", "V" or CTRL-V
|
||||
See |Select-mode|.
|
||||
The 'selectmode' option is set by the |:behave| command.
|
||||
|
||||
*'sessionoptions'* *'ssop'*
|
||||
'sessionoptions' 'ssop' string (default: "blank,buffers,curdir,folds,
|
||||
|
@@ -124,41 +124,13 @@ This adds the 'l' flag to 'guioptions'.
|
||||
Standards are wonderful. In Microsoft Windows, you can use the mouse to
|
||||
select text in a standard manner. The X Window system also has a standard
|
||||
system for using the mouse. Unfortunately, these two standards are not the
|
||||
same.
|
||||
Fortunately, you can customize Vim. You can make the behavior of the mouse
|
||||
work like an X Window system mouse or a Microsoft Windows mouse. The following
|
||||
command makes the mouse behave like an X Window mouse: >
|
||||
same. Fortunately, you can customize Vim.
|
||||
|
||||
:behave xterm
|
||||
|
||||
The following command makes the mouse work like a Microsoft Windows mouse: >
|
||||
|
||||
:behave mswin
|
||||
|
||||
The default behavior of the mouse on Unix systems is xterm. The default
|
||||
behavior on Windows systems is selected during the installation process. For
|
||||
details about what the two behaviors are, see |:behave|. Here follows a
|
||||
summary.
|
||||
|
||||
|
||||
XTERM MOUSE BEHAVIOR
|
||||
|
||||
Left mouse click position the cursor
|
||||
Left mouse drag select text in Visual mode
|
||||
Middle mouse click paste text from the clipboard
|
||||
Right mouse click extend the selected text until the mouse
|
||||
pointer
|
||||
|
||||
|
||||
MSWIN MOUSE BEHAVIOR
|
||||
|
||||
Left mouse click position the cursor
|
||||
Left mouse drag select text in Select mode (see |09.4|)
|
||||
Left mouse click, with Shift extend the selected text until the mouse
|
||||
pointer
|
||||
Middle mouse click paste text from the clipboard
|
||||
Right mouse click display a pop-up menu
|
||||
The following commands makes the mouse work more like a Microsoft Windows mouse: >
|
||||
|
||||
set selection=exclusive
|
||||
set selectmode=mouse,key
|
||||
set keymodel=startsel,stopsel
|
||||
|
||||
The mouse can be further tuned. Check out these options if you want to change
|
||||
the way how the mouse works:
|
||||
|
@@ -556,6 +556,7 @@ Aliases:
|
||||
vimdiff (alias for "nvim -d" |diff-mode|)
|
||||
|
||||
Commands:
|
||||
:behave
|
||||
:fixdel
|
||||
:hardcopy
|
||||
:helpfind
|
||||
|
@@ -15,7 +15,10 @@ endif
|
||||
set cpo&vim
|
||||
|
||||
" set 'selection', 'selectmode', 'mousemodel' and 'keymodel' for MS-Windows
|
||||
behave mswin
|
||||
set selection=exclusive
|
||||
set selectmode=mouse,key
|
||||
set mousemodel=popup
|
||||
set keymodel=startsel,stopsel
|
||||
|
||||
" backspace and cursor keys wrap to previous/next line
|
||||
set backspace=indent,eol,start whichwrap+=<,>,[,]
|
||||
|
Reference in New Issue
Block a user