* Roy Fulbright <rfulbrig@hotmail.com> [241125 22:09]:
> Let me try this one more time. While I appreciate all the hints about
> yy, etc., my question is how to use the triple-click to select a line
> without adding the new line. I need to know if triple-clicking is hard
> coded in Gvim to add a new line, and if it is hard coded then there is
> no solution. If there is an option in Gvim to allow triple clicking to
> not include the new line, then that is the option I need. Thank you
> all.
I'm sorry that you are frustrated with the responses you have gotten.
First, the help on this subject can be found at :help gui-mouse and
:help mouse-using.
The short answer is that you can map <3-LeftMouse> to do whatever you
can do with Vim script.
Other than that, a single click moves the cursor to the mouse location,
double click selects the word under the mouse, and triple click selects
line-wise (which implicitly includes the ending newline). Yes, this is
different from the standard Windows behavior.
If, when double or triple clicking, you do not release the mouse, i.e.
hold the button down after the second or third press, then moving the
mouse extends the selection, word-wise for double click and line-wise
for triple click.
You might get almost what you want by moving the mouse to the left of
the line, double clicking without releasing, and then dragging to near
the end of the line. I know it's not as convenient as a triple click,
but without mapping the mouse events, I think that is the best you can
do.
However, all the mouse events can be mapped. Some additional relevant
help topics: Select-mode, gui-selections, and map.
The problem with Vim's help is that it is so extensive that it is
sometimes hard to find exactly what you are looking for!
...Marvin
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z0VkTiIC2wn5fdnz%40basil.wdw.
Monday, November 25, 2024
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment