James Vega wrote: > On Sat, Feb 07, 2009 at 04:48:16AM +0100, Tony Mechelynck wrote: >> >> On 07/02/09 04:10, Brian Carper wrote: >> > When you have cursorcolumn set and you go into Visual Block mode, the >> > background highlighting for cursorcolumn overrides the background >> > highlighting for visual mode. This makes it difficult to see what's >> > selected in the column containing the cursor (especially if you move >> > the cursor up/down before moving it left/right). >> > >> > It seems like entering Visual mode should disable the highlighting for >> > cursorcolumn, similarly to how it disables the highlighting for >> > cursorline. >> > >> > e.g. something vaguely similar to (but probably not exactly) this: >> >> I think it's a feature. In Block Visual mode, the cursor is always at >> one corner of the block, and its row and column are included in the >> block (or rather, the part which is along the sides of the block-visual >> area). So there is no ambiguity in having the coc highlight overlay the >> block visual highlight, unless maybe the block is only one column wide. > > Whether it's a feature or a bug, the behavior is inconsistent. It would > seem that either both 'cuc' and 'cul' should be enabled or neither > should.
I'd also prefer: - to highlight the visual selection in priority (rather than cursorline or cursorcolumn) - and have consistent behavior between cursorline & cursorcol (currently when doing a visual selection, only the cursorline remains visible) The current behavior is especially confusing when doing a blockwise visual selection of 1 column only (visual selection is then not visible at all. I can not tell where visual selection starts without the patch). But the patch breaks something. See the 2 screenshots before & after patch (gvim-7.2.102 with/without patch): http://dominique.pelle.free.fr/pic/visual-sel-before-patch.png http://dominique.pelle.free.fr/pic/visual-sel-after-patch.png After patch, the column in the visual selection where cursor is located has the highlight of visual selection instead of CursorColumn (good). However, notice that with the patch, the cursorcolumn is no longer completely highlighted outside the visual selection which is not right (before patch was better in that regard). With patch, the cursor line becomes only highlighted beyond the end of lines (not good). -- Dominique --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
