I had the same need as SDEES (https://news.ycombinator.com/item?id=12441302), so I created a zero-install, client-side encrypted, browser-based editor using SJCL+CodeMirror in Vim mode.
Live link to try it out here: https://srpeck.github.io/encryptedgist/index.html