Sunday, September 25, 2016

Status line vs. CursorColumn in diff (or scrollbind?) mode

IMHO this is not a bug, just a quirk, maybe even a feature.

In diff mode (or maybe whenever 'scrollbind' is set?), then in the
windows other that the current one, the CursorColumn highlight doesn't
move, but the status line follows the cursor movement in the current
window, as follows:

%c ("column number" i.e. byte-of-line) is equal to the current
window's %c even if the line in the non-current window is shorter than
that
%V (virtual column number [i.e. screen cell abscissa] if different
from %c) is always 1, thus not displayed when in column 1
%B (character value in hex) is the value of the character at that
column, or zero if beyond the end of the line

Possibly others which are not part of my 'statusline' setting.

As expected, in "ordinary" (non-scrollbound) windows, cursor movement
does not influence other windows' status line contents.

Tested in both GTK3 GUI and console, in Vim 8.0.12 Huge build. Not
tested on empty lines.


Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: