In practice, the combined strategy of Dvorak+QWERTY command keys, application-specific layout settings, and a rarely-used keybind to swap manually makes this manageable on a day-to-day basis, but it's definitely not ideal. Blame the dumb legacy technology driving keyboards, if you're mad.
I prefer Emacs to Vim though, perhaps that's less affected since shortcut keys are influenced by meaning rather than position? (e.g., Ctrl+N, P, F, B for moving nextline, previousline, forward, backward).
Actually, I guess most of the keystrokes are placed by meaning, not position.
Switching back to qwerty in vim is pretty rough for me though. Enough of the mnemonics that I use on a regular basis get translated to muscle memory in my head that it's tough. I used to be able to switch back and forth easily when I was at a job that had me on qwerty keyboards regularly. But now that I'm not I've lost a lot of it.
The thing that keeps me from switching is I learned to touch type long before having access to keyboards that could be reconfigured.
While that may be less common now, I suspect lots of people still become proficient keyboarders long before learning how to change keyboard layouts, and at that point switching is a cost rather than a benefit.