Hey,
I’d like to write some scripts which will act like a join function but manually.
If we open some file, let’s say in the computer it’s in some binary code where each character is a string of digits. Then I assume these strings get mapped to characters via the encoding; the most standard is UTF-8. I believe in UTF-8 the end of a line would just be a newline character “\n” rather than there being an end of line character “$” and then a newline character “\n”, is this correct? Does Vim insert the end of line character “$”? I tried to perform a substitution function on the EOL character “$” but I found nothing was substituted. For this reason I am thinking this is not a character in the actual file. Is this true?
Best,
Julius