2 ms·
> middle-click paste just makes the terminal feed the contents of the X selection to stdin of the running process. Recent versions of vim hijack this by defaul
by boring_twenties 6y ago
> middle-click paste just makes the terminal feed the contents of the X selection to stdin of the running process.
Recent versions of vim hijack this by default (`set mouse=a`). This makes the middle click paste the default vim register instead of the X selection. To paste from X, you must shift+click.
Personally, I can't understand why anyone would want this, but anyway. The best part is that you can't easily disable this globally, i.e. by putting `set mouse=` in /etc/vim/vimrc. Because if a given user does not have a ~/.vimrc of their own, then defaults.vim gets loaded after /etc/vim, overriding anything set there.