When I copy lines with vim on my ssh term I always have the line number:
1 <?php
2 echo "test";
3
I try many things like:
set mouse=a
set mousehide
set pastetoggle=
I enter into visual mode it's doesn't highlight line numbers but I can't copy.
I don't want to unset number and set again each time I want to copy something ;)
Does a script exist? Like autocmd or something like that?
I'm on Mac Os X, but I use vim over ssh (-clipboard).
Note it's not a duplicate of: How to clear the line number in Vim when copying?
So it's a duplicate of: Scrolling inside Vim in Mac's Terminal
If moderator can (re)link please?