Emacs and vim are way too complicated to just jump directly to the source code. Try something smaller and more manageable. I would personally
recommend vis[1]. Also, take a look at https://texteditors.org/ to discover new editors and resources on design and implementation