Have you tried ed
?
cat << EOF > file.txt
# [[content here]]
EOF
On a more serious note: Neovim for quick file-edits, doom-emacs as my IDE.
Doom-emacs does most of the stuff you are already using out of the box, is highly configurable and it lets you use vim-keybindings. It’s also free (as in freedom) software!
Wowee what a surprise