@anki I'm sure there are some. But we already have a rather broad "Text Editor Alternatives" question with tons of answers on the site, don't see much benefit in listing all of them in the question about line numbers in TextEdit.
We can all gather around the warmth of emacs/vi/nano discussions and bask in the glow of the embers. Then stoke them as needed with GUI vs text and if it gets really cold, we can add fuel by debating the graphical editor options.