On Wed, Dec 14, 2016 at 7:04 AM, Mas <[email protected]> wrote:
> Referencing issue # 1188
> I am wondering if this is a bug or by design in VIM 8? The same is happening
> via Fedora 25. When right clicking it puts you into visual mode. The only
> fix is to add set mouse-=a or set mouse= to .vimrc
>
> vim-minimal-8.0.124-2.fc25.x86_64
> vim-common-8.0.124-2.fc25.x86_64
> vim-gtk-syntax-20130716-6.fc24.noarch
> vim-filesystem-8.0.124-2.fc25.x86_64
> vim-enhanced-8.0.124-2.fc25.x86_64
>
See :help 'mousemodel'
When 'mousemodel' is set to "extend", a right-click or -drag extends a
selection, a shift-right-click selects the pointed word. When it is
set to "popup" or "popup_setpos" it pops up a context menu.
This option is one of those set by the :behave command. ":behave
mswin" sets 'mousemodel' to "popup", ":behave xterm" sets it to
"extend". Myself, I use neither of these "behaviours", but the
following, which I regard as a kind of "golden middle" between them:
" :behave tonymec
if exists('+selectmode')
set slm=mouse,key
endif
if exists('+mousemodel')
set mousemodel=popup
endif
if exists('+keymodel')
set keymodel=startsel
endif
if exists('+selection')
set selection=inclusive
endif
Best regards,
Tony.
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.