Ask the LLMs to vibe code a text editor, and you'll get pretty much what you deserve in return for zero effort of your own.

Ask the best available models -- emphasis on models -- for help designing the text editor at a structural rather than functional level first, being specific about what you want and emphasizing component-level test whenever possible, and only then follow up with actual code generation, and you'll get much better results.