0

I try to see CR and LF chars individually.

set list
set listchars=tab:⇰⇢,nbsp:%,extends:>,precedes:<,trail:·,eol:⏎,<CR>:␍,<NL>:␊

I do not know is the right word or ^M (and ^J). I tried all. Even without eol.

LORDTEK
  • 137
  • 11
  • Does this answer your question? [See line breaks and carriage returns in editor](https://stackoverflow.com/questions/3860519/see-line-breaks-and-carriage-returns-in-editor) TL;DR: you can't use `listchars`. You can set the filemode to always be unix (`set ffs=unix`) and then you can see CR as `^M`. – jeremysprofile Sep 14 '20 at 18:59
  • @jeremysprofile unfortunately it does not answer. I do not want to see ^M, I want to put special char for CR and another for LF. – LORDTEK Sep 14 '20 at 20:07
  • 2
    Unfortunately it does answer. You can use `eol` to mark LF with whatever you want, but `listchars` cannot mark `^M` / CR as something else. It only has a few options. See `:help listchars` to see what those options are. – jeremysprofile Sep 14 '20 at 21:38
  • @jeremysprofile it is clear that I am asking "how to see CR and LF whitespaces on document". I put my example to solve it. Again it is clear that, my example does not work, otherwise why I ask here :) Anyway, on other editors, I can see whitespaces even CR and LF individually. I want to see CR and LF whitechars individually on vim TOO. – LORDTEK Sep 16 '20 at 17:16
  • I understand that, it is not possible to see CR and LF individually on VIM. Thanks anyway. – LORDTEK Sep 16 '20 at 17:19

0 Answers0