Monday, November 13, 2023

Re: How to make Vim having a little better mouse support

> This works as you want it to, right?  Double- and triple- clicks work that way for me.

Double click, should select word. Doesn't work.


> vnoremap <ScrollWheelUp> k
> vnoremap <ScrollWheelDown> j

this works, but is there way that it goes UP, like it does when going DOWN, that it automatically expands toward UP. I don't know if it's because of my xfce4 terminal, and terminal doesn't send some stuff ? Which terminal you use ? 





On Mon, Nov 13, 2023 at 11:06 PM Gary Johnson <garyjohn@spocom.com> wrote:
On 2023-11-13, Igor Lerinc wrote:
> Yes, I did all tips I could apply about enabling mouse support in `.vimrc`, but
> I just want to have mouse support like in every other GUI editor.
>
>
>
> 1. I just need it to be able scroll with mouse selection (when I select, and go
> UP, it wont scroll to up like in every GUI editor does) (it can go DOWN though)
> .

vnoremap <ScrollWheelUp> k
vnoremap <ScrollWheelDown> j

> 2. When I click two times, that it do usual thing GUI editors would do, to
> select that word, or even whole line on three clicks. (currently, just works,
> on selecting whole line on three clicks)

This works as you want it to, right?  Double- and triple- clicks
work that way for me.

> 3. And could that cursor be as line always, and not in block when it's normal
> mode ? it would be nice, if there's some plugin, to change color of cursor, so
> I could know I'm in normal/insert mode.

See

    :help 'guicursor'

That covers both shape and color.

HTH,
Gary

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/fj_QrzAydfw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20231113220511.GA4044%40phoenix.

--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/CADZsa2piriXEo1xvcmhWkS8i0uZcEvBgoSF4jVTZV4VL1hN9Uw%40mail.gmail.com.

No comments: