I noted that when I show up the EOL listchars in a text the linebreaks are losen
p.e.
this is my text of this
message
becomes after set list ..eol
this is my text of this mess
age(EOL CHAR)
I would like to see the EOL characters without breaking the words at window border.
Is that possible?
Unfortunately it sounds like this is a documented limitation of Vim. From the documentation of linebreak (the option which causes per-word line breaks instead of per-character):
Alternate solution: highlight end-of-lines. The simple one-time way would be to just search for them (/$). Beyond that, you can use highlighting:
That’ll give your EOLs green backgrounds. See
:help highlight-argsfor more on how you can specify the highlight.Original answer
This is not the OP’s actual problem, but could sometimes happen, so I’ll leave it here for others to find when they search.
From the help on
'list':From the help on
'cpoptions':'cpoptions'is all about vi-compatibility – are you launchingvimasvi? Or are youmanually setting any of those flags? Check the output of
echo &cpoptions, be sure to launch asvim, and if it’s still set (no idea why it would be) you can unset the flag (set cpoptions-=L).And of course, make sure that the settings for
wrap,wrapmargin,linebreak, andtextwidthare what you want.