Vim 8 goes Visual Mode on right click

Vim 8 shipped with Fedora 25 and Debian 9 when you mouse right click or use middle button to insert text to vim editor, it just go VISUAL mode.

This is because default changes in Vim 8.

Solution 1

The solution is to press SHIFT key before using mouse.

SHIFT + right mouse button = you will get paste option for copied text.

SHIFT + middle mouse button (press mouse wheel) = selected text will be pasted to vim.

SHIFT + INSERT = paste.

Solution 2

use vim.tiny, this can be activated by running

Example

Solution 3

Run command

to make this permanent, edit ~/.vimrc file, add

See vi