aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2015-06-19 00:37:11 -0300
committerJustin M. Keyes <justinkz@gmail.com>2015-06-20 14:14:39 -0400
commitba84f7fc002ecf92a5bc56fa8902b1625b0f8fc9 (patch)
tree19b738de442b700a73fa1f6fb00a7b8dd9ec5acb
parent8e3f67f2a0166994925af75c0efa972d76ea82de (diff)
downloadrneovim-ba84f7fc002ecf92a5bc56fa8902b1625b0f8fc9.tar.gz
rneovim-ba84f7fc002ecf92a5bc56fa8902b1625b0f8fc9.tar.bz2
rneovim-ba84f7fc002ecf92a5bc56fa8902b1625b0f8fc9.zip
defaults: set 'mouse' to 'a' by default. #2860
Re: https://github.com/neovim/neovim/issues/2676 Also, some documentation changes.
-rw-r--r--runtime/doc/help.txt3
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/term.txt18
-rw-r--r--runtime/doc/vim_diff.txt1
-rw-r--r--src/nvim/option.c4
5 files changed, 7 insertions, 21 deletions
diff --git a/runtime/doc/help.txt b/runtime/doc/help.txt
index 347c1310ff..6e7f2920e7 100644
--- a/runtime/doc/help.txt
+++ b/runtime/doc/help.txt
@@ -8,8 +8,7 @@ Close this window: Use ":q<Enter>".
Get out of Vim: Use ":qa!<Enter>" (careful, all changes are lost!).
Jump to a subject: Position the cursor on a tag (e.g. |bars|) and hit CTRL-].
- With the mouse: ":set mouse=a" to enable the mouse (in xterm or GUI).
- Double-click the left mouse button on a tag, e.g. |bars|.
+ With the mouse: Double-click the left mouse button on a tag, e.g. |bars|.
Jump back: Type CTRL-T or CTRL-O (repeat to go further back).
Get specific help: It is possible to go directly to whatever you want help
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 5726de6503..d473fc1603 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -4528,7 +4528,7 @@ A jump table for the options with a short description can be found at |Q_op|.
listing continues until finished.
*'mouse'* *E538*
-'mouse' string (default "", "a" for GUI, MS-DOS and Win32)
+'mouse' string (default "a")
global
Enable the use of the mouse. Only works for certain terminals.
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt
index 8c314aeb23..d7b9395aeb 100644
--- a/runtime/doc/term.txt
+++ b/runtime/doc/term.txt
@@ -522,10 +522,6 @@ This section is about using the mouse on a terminal or a terminal window. How
to use the mouse in a GUI window is explained in |gui-mouse|. For scrolling
with a mouse wheel see |scroll-mouse-wheel|.
-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').
-
These characters in the 'mouse' option tell in which situations the mouse will
be used by Vim:
n Normal mode
@@ -536,10 +532,6 @@ be used by Vim:
a all previous modes
r for |hit-enter| prompt
-The default for 'mouse' is empty, the mouse is not used. Normally you would
-do: >
- :set mouse=a
-to start using the mouse (this is equivalent to setting 'mouse' to "nvich").
If you only want to use the mouse in a few modes or also want to use it for
the two questions you will have to concatenate the letters for those modes.
For example: >
@@ -559,10 +551,8 @@ pressed go to the xterm. With the currently active mode not included in
'mouse' all mouse clicks go to the xterm.
*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
-in the GUI. If not, the middle mouse button will insert the unnamed register.
-In that case, here is how you copy and paste a piece of text:
+The middle mouse button will insert the unnamed register. In that case, here
+is how you copy and paste a piece of text:
Copy/paste with the mouse and Visual mode ('mouse' option must be set, see
above):
@@ -577,10 +567,6 @@ Shortcut: If the insert position is on the screen at the same time as the
Visual text, you can do 2, 3 and 4 all in one: Click the middle mouse button
at the insert position.
- *xterm-command-server*
-When the X-server clipboard is available, the command server described in
-|x11-clientserver| can be enabled with the --servername command line argument.
-
*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
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index ca2b3ec8ad..9193a1e0d2 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -33,6 +33,7 @@ these differences.
- 'backspace' defaults to "indent,eol,start"
- 'encoding' defaults to "utf-8"
- 'formatoptions' defaults to "tcqj"
+- 'mouse' defaults to "a"
- 'nocompatible' is always set
- 'nrformats' defaults to "hex"
- 'smarttab' is set by default
diff --git a/src/nvim/option.c b/src/nvim/option.c
index d2361c1875..876a32b913 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -1111,11 +1111,11 @@ static vimoption_T
{"more", NULL, P_BOOL|P_VIM,
(char_u *)&p_more, PV_NONE,
{(char_u *)FALSE, (char_u *)TRUE} SCRIPTID_INIT},
- {"mouse", NULL, P_STRING|P_VI_DEF|P_FLAGLIST,
+ {"mouse", NULL, P_STRING|P_FLAGLIST,
(char_u *)&p_mouse, PV_NONE,
{
(char_u *)"",
- (char_u *)0L
+ (char_u *)"a"
} SCRIPTID_INIT},
{"mousefocus", "mousef", P_BOOL|P_VI_DEF,
(char_u *)NULL, PV_NONE,