mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
Cleanup 'ttym[ouse]', FEAT_MOUSE, mouse_(dec|gpm|etc.)
Because of 3baba1e7bc, it's dead code.
Helped-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
@@ -6771,13 +6771,6 @@ menu Compiled with support for |:menu|.
|
||||
mksession Compiled with support for |:mksession|.
|
||||
modify_fname Compiled with file name modifiers. |filename-modifiers|
|
||||
mouse Compiled with support mouse.
|
||||
mouse_dec Compiled with support for Dec terminal mouse.
|
||||
mouse_gpm Compiled with support for gpm (Linux console mouse)
|
||||
mouse_netterm Compiled with support for netterm mouse.
|
||||
mouse_sysmouse Compiled with support for sysmouse (*BSD console mouse)
|
||||
mouse_sgr Compiled with support for sgr mouse.
|
||||
mouse_urxvt Compiled with support for urxvt mouse.
|
||||
mouse_xterm Compiled with support for xterm mouse.
|
||||
mouseshape Compiled with support for 'mouseshape'.
|
||||
multi_byte Compiled with support for 'encoding'
|
||||
multi_byte_encoding 'encoding' is set to a multi-byte encoding.
|
||||
|
||||
@@ -4552,10 +4552,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'mouse'* *E538*
|
||||
'mouse' string (default "", "a" for GUI, MS-DOS and Win32)
|
||||
global
|
||||
Enable the use of the mouse. Only works for certain terminals
|
||||
(xterm, Win32 |win32-mouse|, *BSD console with sysmouse and Linux
|
||||
console with gpm). For using the mouse in the GUI, see |gui-mouse|.
|
||||
The mouse can be enabled for different modes:
|
||||
|
||||
Enable the use of the mouse. Only works for certain terminals.
|
||||
For using the mouse in the GUI, see |gui-mouse|. The mouse can be
|
||||
enabled for different modes:
|
||||
n Normal mode
|
||||
v Visual mode
|
||||
i Insert mode
|
||||
@@ -6777,67 +6777,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'ttyfast' 'tf' Removed. |vim-differences| {Nvim}
|
||||
|
||||
*'ttymouse'* *'ttym'*
|
||||
'ttymouse' 'ttym' string (default depends on 'term')
|
||||
global
|
||||
{only in Unix, doesn't work in the GUI; not
|
||||
available when compiled without |+mouse|}
|
||||
Name of the terminal type for which mouse codes are to be recognized.
|
||||
Currently these strings are valid:
|
||||
*xterm-mouse*
|
||||
xterm xterm-like mouse handling. The mouse generates
|
||||
"<Esc>[Mscr", where "scr" is three bytes:
|
||||
"s" = button state
|
||||
"c" = column plus 33
|
||||
"r" = row plus 33
|
||||
This only works up to 223 columns! See "dec",
|
||||
"urxvt", and "sgr" for solutions.
|
||||
xterm2 Works like "xterm", but with the xterm reporting the
|
||||
mouse position while the mouse is dragged. This works
|
||||
much faster and more precise. Your xterm must at
|
||||
least at patchlevel 88 / XFree 3.3.3 for this to
|
||||
work. See below for how Vim detects this
|
||||
automatically.
|
||||
*netterm-mouse*
|
||||
netterm NetTerm mouse handling. The mouse generates
|
||||
"<Esc>}r,c<CR>", where "r,c" are two decimal numbers
|
||||
for the row and column.
|
||||
*dec-mouse*
|
||||
dec DEC terminal mouse handling. The mouse generates a
|
||||
rather complex sequence, starting with "<Esc>[".
|
||||
This is also available for an Xterm, if it was
|
||||
configured with "--enable-dec-locator".
|
||||
*urxvt-mouse*
|
||||
urxvt Mouse handling for the urxvt (rxvt-unicode) terminal.
|
||||
The mouse works only if the terminal supports this
|
||||
encoding style, but it does not have 223 columns limit
|
||||
unlike "xterm" or "xterm2".
|
||||
*sgr-mouse*
|
||||
sgr Mouse handling for the terminal that emits SGR-styled
|
||||
mouse reporting. The mouse works even in columns
|
||||
beyond 223. This option is backward compatible with
|
||||
"xterm2" because it can also decode "xterm2" style
|
||||
mouse codes.
|
||||
'ttymouse' 'ttym' Removed. |vim-differences| {Nvim}
|
||||
|
||||
The mouse handling must be enabled at compile time |+mouse_xterm|
|
||||
|+mouse_dec| |+mouse_netterm| |+mouse_urxvt| |+mouse_sgr|.
|
||||
Only "xterm"(2) is really recognized. NetTerm mouse codes are always
|
||||
recognized, if enabled at compile time. DEC terminal mouse codes
|
||||
are recognized if enabled at compile time, and 'ttymouse' is not
|
||||
"xterm", "xterm2", "urxvt" or "sgr" (because dec mouse codes conflict
|
||||
with them).
|
||||
This option is automatically set to "xterm", when the 'term' option is
|
||||
set to a name that starts with "xterm", "mlterm", or "screen", and
|
||||
'ttymouse' is not set already.
|
||||
Additionally, if vim is compiled with the |+termresponse| feature and
|
||||
|t_RV| is set to the escape sequence to request the xterm version
|
||||
number, more intelligent detection process runs.
|
||||
The "xterm2" value will be set if the xterm version is reported to be
|
||||
from 95 to 276. The "sgr" value will be set if the xterm version is
|
||||
277 or highter.
|
||||
If you do not want 'ttymouse' to be set to "xterm2" or "sgr"
|
||||
automatically, set t_RV to an empty string: >
|
||||
:set t_RV=
|
||||
<
|
||||
*'ttyscroll'* *'tsl'*
|
||||
'ttyscroll' 'tsl' number (default 999)
|
||||
global
|
||||
|
||||
@@ -35,8 +35,7 @@ When using Vim in an xterm the mouse clicks can be used by Vim by setting
|
||||
'mouse' to "a". If there is access to an X-server gui style copy/paste will
|
||||
be used and visual feedback will be provided while dragging with the mouse.
|
||||
If you then still want the xterm copy/paste with the mouse, press the shift
|
||||
key when using the mouse. See |mouse-using|. Visual feedback while dragging
|
||||
can also be achieved via the 'ttymouse' option if your xterm is new enough.
|
||||
key when using the mouse. See |mouse-using|.
|
||||
|
||||
*terminal-colors*
|
||||
To use colors in Vim you can use the following example (if your terminal
|
||||
|
||||
@@ -902,7 +902,6 @@ Short explanation of each option: *option-list*
|
||||
'toolbariconsize' 'tbis' size of the toolbar icons (for GTK 2 only)
|
||||
'ttimeout' time out on mappings
|
||||
'ttimeoutlen' 'ttm' time out time for key codes in milliseconds
|
||||
'ttymouse' 'ttym' type of mouse codes generated
|
||||
'ttyscroll' 'tsl' maximum number of lines for a scroll
|
||||
'ttytype' 'tty' alias for 'term'
|
||||
'undodir' 'udir' where to store undo files
|
||||
|
||||
@@ -832,10 +832,10 @@ vimrc file.
|
||||
These commands will write ":map" and ":set" commands to a file, in such a way
|
||||
that when these commands are executed, the current key mappings and options
|
||||
will be set to the same values. The options 'columns', 'endofline',
|
||||
'fileformat', 'lines', 'modified', 'scroll', 'term', and 'ttymouse' are not
|
||||
included, because these are terminal or file dependent. Note that the options
|
||||
'binary', 'paste' and 'readonly' are included, this might not always be what
|
||||
you want.
|
||||
'fileformat', 'lines', 'modified', 'scroll', and 'term' are not included,
|
||||
because these are terminal or file dependent.
|
||||
Note that the options 'binary', 'paste' and 'readonly' are included, this
|
||||
might not always be what you want.
|
||||
|
||||
When special keys are used in mappings, The 'cpoptions' option will be
|
||||
temporarily set to its Vim default, to avoid the mappings to be
|
||||
|
||||
@@ -243,7 +243,7 @@ Added by Vim (there are no standard codes for these):
|
||||
t_EI end insert mode (block cursor shape) *t_EI* *'t_EI'*
|
||||
|termcap-cursor-shape|
|
||||
t_RV request terminal version string (for xterm) *t_RV* *'t_RV'*
|
||||
|xterm-8bit| |v:termresponse| |'ttymouse'| |xterm-codes|
|
||||
|xterm-8bit| |v:termresponse| |xterm-codes|
|
||||
t_u7 request cursor position (for xterm) *t_u7* *'t_u7'*
|
||||
see |'ambiwidth'|
|
||||
|
||||
@@ -533,11 +533,6 @@ Don't forget to enable the mouse with this command: >
|
||||
:set mouse=a
|
||||
Otherwise Vim won't recognize the mouse in all modes (See 'mouse').
|
||||
|
||||
Currently the mouse is supported for Unix in an xterm window, in a *BSD
|
||||
console with |sysmouse|, in a Linux console (with GPM |gpm-mouse|), for
|
||||
MS-DOS and in a Windows console.
|
||||
Mouse clicks can be used to position the cursor, select an area and paste.
|
||||
|
||||
These characters in the 'mouse' option tell in which situations the mouse will
|
||||
be used by Vim:
|
||||
n Normal mode
|
||||
@@ -600,7 +595,7 @@ When the X-server clipboard is available, the command server described in
|
||||
*xterm-copy-paste*
|
||||
NOTE: In some (older) xterms, it's not possible to move the cursor past column
|
||||
95 or 223. This is an xterm problem, not Vim's. Get a newer xterm
|
||||
|color-xterm|. Also see |'ttymouse'|.
|
||||
|color-xterm|.
|
||||
|
||||
Copy/paste in xterm with (current mode NOT included in 'mouse'):
|
||||
1. Press left mouse button on first letter of text, move mouse pointer to last
|
||||
@@ -731,20 +726,10 @@ and then drag) will result in whole words to be selected. This continues
|
||||
until the button is released, at which point the selection is per character
|
||||
again.
|
||||
|
||||
*gpm-mouse*
|
||||
The GPM mouse is only supported when the |+mouse_gpm| feature was enabled at
|
||||
compile time. The GPM mouse driver (Linux console) does not support quadruple
|
||||
clicks.
|
||||
|
||||
In Insert mode, when a selection is started, Vim goes into Normal mode
|
||||
temporarily. When Visual or Select mode ends, it returns to Insert mode.
|
||||
This is like using CTRL-O in Insert mode. Select mode is used when the
|
||||
'selectmode' option contains "mouse".
|
||||
*sysmouse*
|
||||
The sysmouse is only supported when the |+mouse_sysmouse| feature was enabled
|
||||
at compile time. The sysmouse driver (*BSD console) does not support keyboard
|
||||
modifiers.
|
||||
|
||||
*drag-status-line*
|
||||
When working with several windows, the size of the windows can be changed by
|
||||
dragging the status line with the mouse. Point the mouse at a status line,
|
||||
|
||||
@@ -540,11 +540,6 @@ is confusing. Should say "the argument list is empty".
|
||||
xterm supports escape sequences to mark a paste operation. Need to be
|
||||
enabled. (Bruno Sutic, 2014 Jul 11) How to know the terminal supports this?
|
||||
|
||||
URXVT:
|
||||
- will get stuck if byte sequence does not contain the expected semicolon.
|
||||
- Use urxvt mouse support also in xterm. Explanations:
|
||||
http://www.midnight-commander.org/ticket/2662
|
||||
|
||||
Patch to have the fold and sign column and at the last line of the buffer.
|
||||
(Marco Hinz, 2014 Sep 25)
|
||||
Alternate suggestion: let all columns continue, also the number column.
|
||||
|
||||
@@ -364,13 +364,6 @@ N *+mksession* |:mksession|
|
||||
N *+modify_fname* |filename-modifiers|
|
||||
N *+mouse* Mouse handling |mouse-using|
|
||||
N *+mouseshape* |'mouseshape'|
|
||||
B *+mouse_dec* Unix only: Dec terminal mouse handling |dec-mouse|
|
||||
N *+mouse_gpm* Unix only: Linux console mouse handling |gpm-mouse|
|
||||
B *+mouse_netterm* Unix only: netterm mouse handling |netterm-mouse|
|
||||
N *+mouse_sysmouse* Unix only: *BSD console mouse handling |sysmouse|
|
||||
B *+mouse_sgr* Unix only: sgr mouse handling |sgr-mouse|
|
||||
B *+mouse_urxvt* Unix only: urxvt mouse handling |urxvt-mouse|
|
||||
N *+mouse_xterm* Unix only: xterm mouse handling |xterm-mouse|
|
||||
N *+multi_byte* 16 and 32 bit characters |multibyte|
|
||||
*+multi_byte_ime* Win32 input method for multibyte chars |multibyte-ime|
|
||||
N *+multi_lang* non-English language support |multi-lang|
|
||||
|
||||
@@ -121,6 +121,7 @@ Other options:
|
||||
'textauto'
|
||||
'textmode'
|
||||
'ttybuiltin'
|
||||
'ttymouse'
|
||||
|
||||
Other commands:
|
||||
:fixdel
|
||||
|
||||
@@ -560,8 +560,6 @@ call append("$", "\tmouse button is used for")
|
||||
call <SID>OptionG("mousem", &mousem)
|
||||
call append("$", "mousetime\tmaximum time in msec to recognize a double-click")
|
||||
call append("$", " \tset mouset=" . &mouset)
|
||||
call append("$", "ttymouse\t\"xterm\", \"xterm2\", \"dec\" or \"netterm\"; type of mouse")
|
||||
call <SID>OptionG("ttym", &ttym)
|
||||
if has("mouseshape")
|
||||
call append("$", "mouseshape\twhat the mouse pointer looks like in different modes")
|
||||
call <SID>OptionG("mouses", &mouses)
|
||||
|
||||
Reference in New Issue
Block a user