I thought I was getting stuck in insert mode, and I got fairly frustrated before realizing my Vim keybindings browser extension was grabbing ESC and keeping it from this weird browser-Vim.<p>We brought this abomination on ourselves.
The GitHub readme has a bunch of great content on it. <a href="https://github.com/rhysd/vim.wasm" rel="nofollow">https://github.com/rhysd/vim.wasm</a>
This is pretty dope, but I'm terrified about the fact that Firefox lets it take over Ctrl+L, Ctrl+1, or any other way (that I can find, at least) of breaking out of Vim with a keyboard aside from closing the tab with Ctrl+W - which is even more terrifying since I use that in Vim a ton, too :O<p>...but this <i>is</i> pretty cool :D
I wonder if this will be useful for electron based editors like vscode's vim plugin. I know the plugin is "good" but I always find something that works in vim and doesn't in the plugin and end up going back to my terminal.
The timing on this is really interesting for me. I've been working on a full web vim product (plugins, multi-session, cloud storage, backup, etc.) and I'm pretty close to a beta product (POC is fully functional, just polishing a few rough edges). If anyone is interested in hearing more, email me at webvimbeta@gmail.com
Not sure if it's a bug or user error (not sure if writing is supposed to be supported yet), but after doing the following, the page becomes nonresponsive:<p>:o test.tx
:wq
I get an fsync failed error and I'm told to press enter or type a command to continue.<p>I can't do either.
I am impressed that<p><pre><code> :imap jk <Esc>
:imap kj <Esc>
</code></pre>
works great. However it seems like outer and inner text objects aren't working at all. E.g. daw, ci)
I see many comments on broken key combinations. Obviously, we need to somehow overcome a UI/UX limitations of the applications that run inside a browser if we're moving into browsers with the consumer apps. I wrote a dedicated article on this: <a href="https://database.blog/trello-hot-keys/" rel="nofollow">https://database.blog/trello-hot-keys/</a>
sorry for being dense, but I can't seem to save files or do anything seemingly practical. Is there any practical use cases for this library, or is this purely along the lines of "Hey checkout this cool hack!"
My test for "non-native" Vim is always 'q:' which should open a command line window of previous commands at the bottom of your screen - unfortunately that does not work.<p>Furthermore I can't use 'Ctrl-v' that let's you select a column of text (EDIT: correction, this <i>does</i> work).<p>'q:' should not be captured by the browser? Nevertheless impressive work.
Unfortunately it's not working on my android phone with hacker keyboard (full keyboard with esc). There are also horizontal lines across the screen that should not be there.
Good work. Almost there.<p>Things that doesn't work starts from where you might need to change word "ciw", visually select word "viw".
How do Emscripten cross-compiled things and WASM compiled things handle the display? Is it a framebuffer they blindly draw to, do they need shim layers added to interpret normal output to window-scaled in-browser output?
Also see previous discussion about the code on the GitHub repo <a href="https://news.ycombinator.com/item?id=17487936" rel="nofollow">https://news.ycombinator.com/item?id=17487936</a>
very cool, some of the set commands don't seem to work for me... set softtabstop for example didn't appear to work. also i might have a local setting but tab complete with set wasn't working... again probably local settings. and :w wtf didn't work :D seems to crash it. This is super cool<p>[update] ah i see from the readme write support is in the todo list.
Does this get us any closer to being able to edit text fields using vi keybindings? I've tried some of the plugins (long ago) and was underwhelmed with the experience.