> I'm not sure why Arduino decided to reinvent a text editor
They didn't, they repurposed the editor developed for Processing ( https://processing.org/ ).
> instead of focusing on a plugin for a better text editor.
Which cross platform editor should they have focused on in 2005?