Mouse and Vim for the Lazy
Have you ever noticed that, when you have line numbers enabled in Vim, you can’t select just the code? You know, the numbers get selected as well. I was too lazy to fix that problem for a while now, and today I took a stab at it finally. Solution was deceivingly simple.
One method mentioned involved adding mouse button bindings to vimrc, and then adding more options to Xdefaults, but I wanted none of that. So I found another solution:
gvim -v
Yup. Gvim. Invoking Gvim with the -v switch makes it behave and look just like normal Vim, but with the awesome mouse support. Now you can scroll, select, copy, paste, and move separators with mouse, and still enjoy the text-version look and feel. How awesome is that! (^_^)




