The problem with writing an editor if you intend to use it for coding, is not the text editor itself, that's rather simple. The problem is code completion and syntax highlighting. Then whatever system you try to implement becomes just as bloated as the bloatware you're trying to replace.

This is just not true at all.

You don't actually need either of those things for coding. Many, many programmers did just fine without them.