Monday, October 4, 2021

Manual join function and encoding

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

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEsMKX3s8_D%3D4vrC%3DLFKRgQKVqSTJ2PccAcWfHJt3dUw-aPsqg%40mail.gmail.com.

No comments: