How to disable visual mode on mouse select for vim
Sep 7, 2018 · 1 min read
At some point, the maintainers of vim (an enhanced version of vi, a basic editor in most *nix based machines) decided that it would be a good idea to have a visual mode which changes the interaction with vim when there is a mouse selection. This made copy+pasting horrible, but the solution is super simple.
- Create the file ~/.vimrc
- Insert in it
set mouse-=a
In one line:
echo "set mouse-=a" >> ~/.vimrcThanks to this gist for the solution!
Originally published at tech.migueldavid.eu on September 7, 2018.
