comparison runtime/doc/options.txt @ 18465:d7619a9874cd v8.1.2226

patch 8.1.2226: cannot use system copy/paste in non-xterm terminals Commit: https://github.com/vim/vim/commit/5b418992cf254137fde2a14d7066fbea5afddb28 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 27 18:50:25 2019 +0100 patch 8.1.2226: cannot use system copy/paste in non-xterm terminals Problem: Cannot use system copy/paste in non-xterm terminals. Solution: Instead of setting 'mouse' to "a" set it to "nvi" in defaults.vim.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Oct 2019 19:00:04 +0100
parents 18d7337b6837
children b9cf60801963
comparison
equal deleted inserted replaced
18464:44a72ca3b693 18465:d7619a9874cd
5189 NOTE: This option is set to the Vi default value when 'compatible' is 5189 NOTE: This option is set to the Vi default value when 'compatible' is
5190 set and to the Vim default value when 'compatible' is reset. 5190 set and to the Vim default value when 'compatible' is reset.
5191 5191
5192 *'mouse'* *E538* 5192 *'mouse'* *E538*
5193 'mouse' string (default "", "a" for GUI, MS-DOS and Win32, 5193 'mouse' string (default "", "a" for GUI, MS-DOS and Win32,
5194 set to "a" in |defaults.vim|) 5194 set to "a" or "nvi" in |defaults.vim|)
5195 global 5195 global
5196 Enable the use of the mouse. Only works for certain terminals 5196 Enable the use of the mouse. Works for most terminals (xterm, MS-DOS,
5197 (xterm, MS-DOS, Win32 |win32-mouse|, QNX pterm, *BSD console with 5197 Win32 |win32-mouse|, QNX pterm, *BSD console with sysmouse and Linux
5198 sysmouse and Linux console with gpm). For using the mouse in the 5198 console with gpm). For using the mouse in the GUI, see |gui-mouse|.
5199 GUI, see |gui-mouse|.
5200 The mouse can be enabled for different modes: 5199 The mouse can be enabled for different modes:
5201 n Normal mode and Terminal modes 5200 n Normal mode and Terminal modes
5202 v Visual mode 5201 v Visual mode
5203 i Insert mode 5202 i Insert mode
5204 c Command-line mode 5203 c Command-line mode
5205 h all previous modes when editing a help file 5204 h all previous modes when editing a help file
5206 a all previous modes 5205 a all previous modes
5207 r for |hit-enter| and |more-prompt| prompt 5206 r for |hit-enter| and |more-prompt| prompt
5208 Normally you would enable the mouse in all five modes with: > 5207 Normally you would enable the mouse in all five modes with: >
5209 :set mouse=a 5208 :set mouse=a
5210 < When the mouse is not enabled, the GUI will still use the mouse for 5209 < If your terminal can't overrule the mouse events going to the
5210 application, use: >
5211 :set mouse=nvi
5212 < The you can press ":", select text for the system, and press Esc to go
5213 back to Vim using the mouse events.
5214 In |defaults.vim| "nvi" is used if the 'term' option is not matching
5215 "xterm".
5216
5217 When the mouse is not enabled, the GUI will still use the mouse for
5211 modeless selection. This doesn't move the text cursor. 5218 modeless selection. This doesn't move the text cursor.
5212 5219
5213 See |mouse-using|. Also see |'clipboard'|. 5220 See |mouse-using|. Also see |'clipboard'|.
5214 5221
5215 Note: When enabling the mouse in a terminal, copy/paste will use the 5222 Note: When enabling the mouse in a terminal, copy/paste will use the