summaryrefslogtreecommitdiffstats
path: root/runtime/doc/term.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-27 18:50:25 +0100
committerBram Moolenaar <Bram@vim.org>2019-10-27 18:50:25 +0100
commit5b418992cf254137fde2a14d7066fbea5afddb28 (patch)
treed37edd3caa682bfa285dbdf6dff97e8ac7b6edd5 /runtime/doc/term.txt
parent52410575be50d5c40bbe6380159df48cfc382ceb (diff)
patch 8.1.2226: cannot use system copy/paste in non-xterm terminalsv8.1.2226
Problem: Cannot use system copy/paste in non-xterm terminals. Solution: Instead of setting 'mouse' to "a" set it to "nvi" in defaults.vim.
Diffstat (limited to 'runtime/doc/term.txt')
-rw-r--r--runtime/doc/term.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt
index 133d0e991b..0a0f647781 100644
--- a/runtime/doc/term.txt
+++ b/runtime/doc/term.txt
@@ -746,12 +746,21 @@ jump to tags).
Whether the selection that is started with the mouse is in Visual mode or
Select mode depends on whether "mouse" is included in the 'selectmode'
option.
-
+ *terminal-mouse*
In an xterm, with the currently active mode included in the 'mouse' option,
normal mouse clicks are used by Vim, mouse clicks with the shift or ctrl key
pressed go to the xterm. With the currently active mode not included in
'mouse' all mouse clicks go to the xterm.
+For terminals where it is not possible to have the mouse events be used by the
+terminal itself by using a modifier, a workaround is to not use mouse events
+for Vim in command-line mode: >
+ :set mouse=nvi
+Then to select text with the terminal, use ":" to go to command-line mode,
+select and copy the text to the system, then press Esc.
+
+Another way is to temporarily use ":sh" to run a shell, copy the text, then
+exit the shell. 'mouse' can remain set to "a" then.
*xterm-clipboard*
In the Athena and Motif GUI versions, when running in a terminal and there is
access to the X-server (DISPLAY is set), the copy and paste will behave like