What does a horizontal line in vim mean? While editing a remote file I see a horizontal line in the current line.

I don’t see it while editing local files
Edit:
cursorline is not shown until I save the file(:w). When I type :w and enter password, cursorline appears. Why does it have such a behavior? When I edit file in remote machine cursorline is turned off and is not shown.
As others have answered, the effect is probably being caused by the
cursorlineoption.You can track down what is script made the most recent change to an option by running the command
set optname?under theverbosecommand:You will probably just find that the Netrw plugin set it; Netrw handles local directory browsing and remote directory/file access like your
scp://example. Netrw adjustscursorline(andcursorcolumn) for its own purposes (e.g. directory listings), but it tries to restore the value to the “user value”. Unfortunately, its idea of the “user value” is captured when part of the Netrw code loads and is not updated afterwards.My guess is that, somehow (via some other plugin, or bit of configuration),
cursorlineis set when Netrw loads (and captures its value), but it is later reset by the time you start editing the first file. Then, when you later save the file (:w), Netrw restores the “captured” value. Unfortunately, there does not appear to be any good way to update this “captured” value of thecursorlineoption (there is no “external” access to the script variable it uses, and it does not “recapture” if you manually reload the file).What you can do, however, is explicitly load the bit of Netrw that “captures”
cursorlinewhen your desired value is active. You could do that with the following two commands early in your~/.vimrc(possibly at the very top, if necessary—it needs to be before the first timeautoload/netrw.vimwould ever be used):Netrw will still set/reset
cursorline(andcursorcolumn), but as long as the value you normally want matches the value that is active right before Netrw is loaded, then you will not notice it.