If this were an option in the ide, I’d have to go have a little lie down to recover my composure…
Nice! Codemirror also has vim support (albeit not maintained) - and the anvil ide uses codemirror so… ive tried a couple of times (in vain) to make it work.
Wouldn’t it be great if there was a check box that said vim mode. I think if we ask enough the anvil fairies ♀ might make it happen.
That’s slightly different (but would still be nce to have). Codemirror has vim key bindings but you’re still running codemirror and not vim itself.
Neovim can run in headless mode with any ui driving it, so this would be your own local installation of neovim being driven from within the browser. (vscode has this ability to drive neovim too).
All my local neovim plugins and settings work too - so I’ve got async linting and autocomplete, formatting with black, import sorting, code folding etc. etc.
I am a happy man.
Hang on, you’ve replaced the Anvil IDE editor with vim?
That’s even cooler than I first thought!
Yep. And it turned out to be a breeze to setup. I just followed the firenvim instructions (install the neovim plugin, install the browser extension) and it all just worked.
I guess you lose things like dynamic code linking (ctl-click) for functions, etc.?
Yes, but I can toggle between neovim and codemirror very quickly and easily
I have firenvim set not to take over by default. I hit ctrl-e if I want neovim and :q to get back to codemirror.
So I tend to read in codemirror first and then switch to nvim for editing.
Even just having my key binding for Black formatting is a major win!
Holy smokes… This is amazing. Thanks for posting this. I just installed it and it is working great!