This. Being able to run easily selectable scripts on pieces of selected text in my editor is what keeps me in vim. Doing repeatable tasks, filling XML data, gosh, I even keep my odometer book in vim via small hacked together python script.
People keep recommending things like Visual Studio Code, but I am yet to find a way to do it there... Is it even possible?