It’s a problem I’ve grappled with for a while. I used to use Scrivener but eventually got tired of its syncing capabilities, as I took a lot of notes on my phone in markdown and wanted an easy way to integrate and transform these notes into longer form pieces. Scrivener does support this, but it’s definitely not the most polished feature of the tool and it kind of clunky and annoying to work with in my opinion.
Tried using vim+git for a while. This combo is great for portability, but my eyes get tired staring at a terminal all day, and while git feels nice, it doesn’t give you huge advantages and is just more work when many GUI tools like scrivener have good enough version control built in — some would probably find a complete git version history useful, and use branches for different drafts etc. but I personally have never needed this and find it’s just another distraction from actually doing the work of writing.
Now that I stare at a screen for several hours a day during my day job, I’ve settled on pen and paper for my own health. No idea yet whether or not I’ll be able to translate this into finished products or if typing out handwritten text will prove too tedious.