Dragging the mouse always selects text.
Dragging with button 1 pressed (usually the left button) selects characters,
dragging with button 2 (the middle button) selects a rectangular area, and
dragging with button 3 (usually the right button) selects whole lines.
These operations correspond to elvis'
v,
^V, and
V commands, respectively.
(These commands are described later in this chapter.)
When you release the button at the end of the drag, the selected text is
immediately copied into an X11 cut buffer, so you can paste it into another
application such as xterm.
The text remains selected, so you can apply an operator command to it.
Clicking button 1 cancels any pending selection, and moves the cursor to
the clicked-on character.
Clicking button 3 moves the cursor without canceling the pending selection;
you use this to extend a pending selection.
Clicking button 2 "pastes" text from the X11 cut buffer
(like xterm).
If you're entering an
ex command line, the text will be pasted into the
command line as though you had typed it.
If you're in visual command mode or input mode,
the text will be pasted into
your edit buffer.
When pasting, it doesn't matter where you click in the window;
elvis always inserts the text at
the position of the text cursor.
Double-clicking button 1 simulates a ^]
keystroke, causing elvis
to perform tag lookup on the clicked-on word.
If elvis happens to be displaying an HTML document,
then tag lookup pursues hypertext links,
so you can double-click on any underlined text
to view the topic that describes that text.
Double-clicking button 3 simulates a ^T keystroke,
taking you back to where you did the last tag lookup.