I developed an editor widget for ratatui. I originally developed it for my tui grpc client, but it now has features beyond that:
- vim mappings
- supports line wrapping
- supports syntax highlighting
- supports mouse events
- supports search
- handles unicode character widths
and much more. If there are any features you would like to see, just open an issue. But note, it is not meant to be a highly sophisticated editor and will never come close to vim. But it is already useful for simple TUI apps.