That's great ! I have been looking for such a quick online vim experience for
quite some time.<p>A month ago I did find what I consider to be even better : make of any textarea
on any page a neovim instance with the firenvim extension (thanks to which
I am writing this comment <i>in</i> neovim <i>in</i> my browser!)<p>It's not even a vim-like experience, it's literally your configured neovim in
the browser !<p>Somehow I haven't managed to get it to the front page (this is not my creation
but I am a big fan since I have been looking for this for so long)<p>I even get autocompletion and all coding niceties in the little code playgrounds that are all the rage
in nowadays tutorials<p><a href="https://github.com/glacambre/firenvim">https://github.com/glacambre/firenvim</a><p><a href="https://addons.mozilla.org/en-US/firefox/addon/firenvim/" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/firenvim/</a>
That's pretty cool!<p>Wrote a file to test.js with the following:<p><pre><code> console.log(navigator)
document.querySelector("#pastebtn").innerText = "PASTE"
</code></pre>
And then run it with `:!test.js` and it executes it in the current browser context. Editor editing itself :)
Is safari still evicting indexeddb after 7 days? <a href="https://web.dev/storage-for-the-web/" rel="nofollow">https://web.dev/storage-for-the-web/</a><p>If so, Indexeddb should only be used to store “unsaved” files for safari.<p>Chrome and Firefox support <a href="https://caniuse.com/mdn-api_permissions_persistent-storage_permission" rel="nofollow">https://caniuse.com/mdn-api_permissions_persistent-storage_p...</a><p>But that implies if the user denies persistent storage, then indexedb should be again only used to store “unsaved” files
Does kinda work<p>Perfect :<p>* Using :left and V , set ts=4 sts=4 sw=4<p>* Recording macros with q<p>* Main vim combos - it's definitely vim<p>Fails :<p>* Typing { or } on a MacBook Air under Firefox - don't know which of this settings cause the bug. Reproducibly, { does not work<p>* Replaying a macro containing { or any error<p>Kudos for the compilation (emscripten ?) and Brace for impact (the incoming bugs) :)
Looks cool, if it wasn't for the SharedArrayBuffer usage I would use this one over the current one I used for my desktop environment in the browser. I have Vim on there if anyone is interested in checking out a different version.<p><a href="https://dustinbrett.com/?app=Vim" rel="nofollow">https://dustinbrett.com/?app=Vim</a>
That is very cool, nice to see vintage editors hosted in a modern environment.<p>What I'd really like to see return is an online version of EDIT.COM, and maybe also its host binary QBASIC.EXE, not just for the nostalgia but because it was a pretty decent editor for the time, it even supported editing binary files if you didn't have a hex editor to hand, though you had to use Alt+(numpad) for most characters.
Are there some opinionated keybindings configured with this? I find that typing ctrl puts it into visual mode immediately. ctrl-v doesn't work.<p>Also, I use ctrl-[ as escape, and it seems to catch it sometimes, otherwise inserting an actual "ctrl-[" character.<p>On Firefox btw.
Interesting about the security note and WASM re: the Neovim version. (see here: <a href="https://github.com/glacambre/firenvim">https://github.com/glacambre/firenvim</a>. More specifically here: <a href="https://github.com/glacambre/firenvim/blob/master/SECURITY.md">https://github.com/glacambre/firenvim/blob/master/SECURITY.m...</a>)<p>Does this open up an attack surface on users using vim/neovim? This page seems to indicate that neovim (and this) do not run in a sandbox <i>already</i>.<p>Can anyone with more knowledge on this expand on that?
Really cool! Excuse me for my naivete but is there a benefit to writing normal JS but then compiling it to wasm? Does that make it faster? Was kinda expecting C or some other language when viewing through the source on github.
It makes me sad every time I try a Vim with a non-zero 'scrolloff' setting. Since I started using Vim I have learned to use H and L efficiently when navigating, but non-zero 'scrolloff' changes where H and L move the cursor to - and somehow non-zero 'scrolloff' is now the default in Ubuntu if a user hasn't created a vimrc file (even an empty file will do).<p>Note that this seems to work much better in Chrome than in Firefox - when I press Ctrl in Firefox, it activates Visual Block mode (so e.g. Ctrl-D, Ctrl-U, Ctrl-O, Ctrl-I won't work).
Pretty cool. There's a lot of vim nuances to implement. Everyone is going to have their subset that doesn't work quite right. In my short experimenting with it <shift> in command mode moves the caret up a line which is incorrect.
If you are into this, note there's also a JavaScript online Vim: <a href="https://wang-lu.com/vim.js/emterpreter/vim.html" rel="nofollow">https://wang-lu.com/vim.js/emterpreter/vim.html</a>
Wow, very smooth to use! Would be extra neat if this could support plugins as well.<p>We're building out a free AI code completion tool, Codeium that will support Neovim as an IDE and would love to hook into this as well.
IndexedDB can be purged at any time by the browsers. They all have different rates, but I believe Safari will dump a db if it needs space and that DB hasn't been touched for a week.