I think this question of mine should be closed, since I do not have access to that computer anymore, so I can't check wheter the answers are effective solutions or not.
I never had this problem, but recently I "lost" my
.vimrc file of my Mac and had to use another one from a different computer.
The strange thing, is now that the
cursorlines are drawn and remain fixed when I move up with k or ↑, whereas are removed when I move down with j or ↓. (So, moving from downmost line to upmost line I can fill every line with the cursorline, whereas moving from upmost to downmost line I can erase all cursorlines.)
- Moving with ⇧L, ⇧M and ⇧H, does not affect the behavior.
- Moving to another buffer with ctrlWctrlW or ctrlk or similars doesn't affect the behavior.
- Moving to another program with ⌘↹, makes all cursorlines disappear, but those where the cursor is (cursors are, if more than one buffer is visible).
cursor columnoption make the redraw happen only when the movements implies a change in the column of the cursor.
I launched Vim with
vim -u NONE -U NONE -N (as suggested here) and the problem is still present, so it's not about my
(I have not solved the problem yet, so I use
set nocul to avoid this persistent lines. I set the option manually, not in my
.vimrc file, since I hope I will solve the problem! With your help.) I have news! I noticed that the first time I open a file, no matter how much time I rest with my arms folded, when I start moving (doing some j and then some k I can fill some lines with cursorlines) a "spontaneous" refresh is done after a second (or not much more than a second), then no more.
When I ssh-connect to the machine on which I have the problem from another one I experience no problem; when I ssh-connect to another computer form the the machine on which I have the problem, I experience the same problem. Thus, it seems to be a problem of the terminal and not Vim.