On 2021, I used these editors:
vim
gedit
notepad++
atom
VS Studio Code
kate
I like notepad ++ because in case of catastrophic failure, it does remember the contents of all files I was working on, even the changes I haven't saved yet.
I had been using atom for several months, and I still like it so much.
I used VS Studio Code for a while, but I am not still convinced of it.
Right now, I am using kate and I feel it matches all my needs (except the great memory feature of notepad++, unfortunately) and I bet I will stick to it for a long while. I customized the default options and made it atom-like, but I feel I'm distilled open source and that makes me happy. Also, I love the icon set and the minimap. I abandoned atom because I didn't like the available mindmap addons.