Hi mgaleski!

On Mi, 22 Apr 2015, [email protected] wrote:

> It seems that in your patch there is a ")" missing on line 4718 in screen.c:
>                       && lcs_eol_one >= 0))
> 
> I can already see that it applies NonText highlight group (not Normal) for 
> whatever reason on those empty lines and eols.
> 
> It also changes the behavior to more resemble nolist, so I'm not quite sure 
> if this is it. If I set listchars to empty value, then no eols should be 
> shown. But regardless of any settings, VIM operates as if empty lines are 
> normal chars (you can dd, or whatever), for this it makes sense to be able to 
> select them visually.
> 
> I find the way EMACS with evil does visual line selection makes more sense, 
> if you select EOL then the whole line width gets selected (highlighted). This 
> makes easy to select empty lines and doesn't make bogus empty lines when 
> wrapping long lines.
> 
> I've attached a screenshot with some ideas. Read from left to right:
> 1) Your patch (with set listchars= and columns=40 and showbreak)
> 2) One idea how it could look
> 3) This one is inspired by how EMACS with evil does line highlight.
> 
> The third option makes a lot of sense, because it distinguishes between line 
> being selected wholly with EOL (it can be clearly seen) and you can also tell 
> at a glance if a visual selection ends on empty line and which one. It's hard 
> to explain that issue, I hope the photo makes it clearer.

I don't like the third option, one does not know, whether there is 
trailing space. Here is an improved version of my previous patch, that 
looks like 2) for :set listchars= list sbr=+

Is this what you had in mind?
(Picture: http://i.imgur.com/c8VPTfk.png)

Best,
Christian 
-- 
Fernsehen ist Kaugummi für die Augen.
                -- Orson Welles

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui