1

In VIM when I execute set mouse=a, then I can use mouse to navigate. That's good. And when I need a new window for editing, I can double click on a tab. VIM will open an empty window for me.

However, I have an annoying problem. I found that when I click on a tab and move the mouse (usually, the move is not on purpose. Accidentally.), it will also create a new window. This annoys me so much such that I cannot browser every tab quickly (should be very careful to click on tab).

Does anyone also have this issue and know how to disable the feature (or bug?) of DRAG to open a new window.

THe OS is Linux running KDE Plasma with konsole terminal application.

2
  • Is this with the mouse on the terminal? Which O.S. and platform?
    – filbranden
    Feb 25, 2020 at 4:24
  • On Linux. I run KDE desktop and run VIM via the terminal 'konsole'. Feb 26, 2020 at 9:41

1 Answer 1

0

I have a workaround to quickly close accidentally creating new tab by adding right click to close it though I don't like this workaround.

nnoremap <RightMouse> :tabclose<CR> 

Finally, I found this is related to the problem of terminal application (KDE konsole). After I switch to other terminal application, simple terminal, the problem is gone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.