TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Vim.wasm

576 点作者 fibo大约 6 年前

51 条评论

nyx大约 6 年前
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.
评论 #19746553 未加载
评论 #19744989 未加载
评论 #19746765 未加载
评论 #19749179 未加载
评论 #19744717 未加载
tomjakubowski大约 6 年前
Does anyone know if lynx plans on supporting wasm? I&#x27;d like to try this editor in a terminal.
评论 #19746963 未加载
评论 #19745275 未加载
评论 #19744694 未加载
评论 #19746542 未加载
评论 #19747055 未加载
评论 #19755021 未加载
AndyKelley大约 6 年前
The GitHub readme has a bunch of great content on it. <a href="https:&#x2F;&#x2F;github.com&#x2F;rhysd&#x2F;vim.wasm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rhysd&#x2F;vim.wasm</a>
be_erik大约 6 年前
This is absolutely incredible. I never thought this would be possible-- wasm opens a new phase of software development and deployment.
评论 #19745502 未加载
评论 #19744749 未加载
评论 #19755080 未加载
评论 #19748341 未加载
评论 #19745726 未加载
frutiger大约 6 年前
<p><pre><code> :colorscheme unknown &quot;that&#x27;s weird :set file^I^I &quot;I guess tab autocomplete doesn&#x27;t work :set filetype=cpp i#include &lt;iostream&gt;&lt;Esc&gt; &quot;I guess syntax highlighting doesn&#x27;t work either :set tabstop=4 softtabstop=4 i^I^I &quot;at least that worked!</code></pre>
kalefranz大约 6 年前
Where’s the escape key on my iPhone?
评论 #19744238 未加载
评论 #19744479 未加载
评论 #19747312 未加载
评论 #19745259 未加载
评论 #19746366 未加载
评论 #19747637 未加载
monokrome大约 6 年前
This is pretty dope, but I&#x27;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
评论 #19746651 未加载
评论 #19746299 未加载
tkinz27大约 6 年前
I wonder if this will be useful for electron based editors like vscode&#x27;s vim plugin. I know the plugin is &quot;good&quot; but I always find something that works in vim and doesn&#x27;t in the plugin and end up going back to my terminal.
评论 #19746498 未加载
webvimbeta大约 6 年前
The timing on this is really interesting for me. I&#x27;ve been working on a full web vim product (plugins, multi-session, cloud storage, backup, etc.) and I&#x27;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
hq6大约 6 年前
Running on Firefox and `Shift` generates a `^P` character.
评论 #19744712 未加载
评论 #19744351 未加载
评论 #19745959 未加载
评论 #19744465 未加载
jsturges大约 6 年前
Not sure if it&#x27;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&#x27;m told to press enter or type a command to continue.<p>I can&#x27;t do either.
positr0n大约 6 年前
I am impressed that<p><pre><code> :imap jk &lt;Esc&gt; :imap kj &lt;Esc&gt; </code></pre> works great. However it seems like outer and inner text objects aren&#x27;t working at all. E.g. daw, ci)
评论 #19745220 未加载
评论 #19745464 未加载
tinus_hn大约 6 年前
Perhaps it’s because I block web fonts but once I start typing little turds remain where the intro text was.
评论 #19745881 未加载
评论 #19762857 未加载
评论 #19747612 未加载
mshockwave大约 6 年前
:! cat &#x2F;etc&#x2F;passwd<p>[blocked]<p>sorry can&#x27;t help myself trying this. but good job!
评论 #19745572 未加载
khorpy大约 6 年前
I see many comments on broken key combinations. Obviously, we need to somehow overcome a UI&#x2F;UX limitations of the applications that run inside a browser if we&#x27;re moving into browsers with the consumer apps. I wrote a dedicated article on this: <a href="https:&#x2F;&#x2F;database.blog&#x2F;trello-hot-keys&#x2F;" rel="nofollow">https:&#x2F;&#x2F;database.blog&#x2F;trello-hot-keys&#x2F;</a>
yjhoney大约 6 年前
sorry for being dense, but I can&#x27;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 &quot;Hey checkout this cool hack!&quot;
评论 #19745303 未加载
评论 #19744630 未加载
评论 #19744500 未加载
评论 #19745305 未加载
zeptomu大约 6 年前
My test for &quot;non-native&quot; Vim is always &#x27;q:&#x27; 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&#x27;t use &#x27;Ctrl-v&#x27; that let&#x27;s you select a column of text (EDIT: correction, this <i>does</i> work).<p>&#x27;q:&#x27; should not be captured by the browser? Nevertheless impressive work.
评论 #19747299 未加载
评论 #19747289 未加载
cyansmoker大约 6 年前
&lt;ctrl-w&gt;w closed my browser window. Should have seen this one coming.
rvalue大约 6 年前
I was hoping :w with filename would download the contents :D
steve19大约 6 年前
Unfortunately it&#x27;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.
z92大约 6 年前
Good work. Almost there.<p>Things that doesn&#x27;t work starts from where you might need to change word &quot;ciw&quot;, visually select word &quot;viw&quot;.
idoco大约 6 年前
My take on vim web version: <a href="http:&#x2F;&#x2F;exitvim2.win" rel="nofollow">http:&#x2F;&#x2F;exitvim2.win</a>
jhare大约 6 年前
Now I really can&#x27;t quit the internet
bhaak大约 6 年前
Trying to save errors out with &quot;E667: Fsync failed&quot; and then it gets stuck.
jodrellblank大约 6 年前
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?
评论 #19746788 未加载
viksit大约 6 年前
Also see previous discussion about the code on the GitHub repo <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17487936" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17487936</a>
mises大约 6 年前
Any plug-in support? Could I upload my vimrc to a server, then download it, apply it, and run :PlugInstall to get my vim setup in any web browser?
评论 #19744691 未加载
评论 #19744492 未加载
评论 #19744481 未加载
taf2大约 6 年前
very cool, some of the set commands don&#x27;t seem to work for me... set softtabstop for example didn&#x27;t appear to work. also i might have a local setting but tab complete with set wasn&#x27;t working... again probably local settings. and :w wtf didn&#x27;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.
fouc大约 6 年前
Why does it completely freeze on :w foo ? It asks for ENTER or any key but that doesn&#x27;t work at all at that point.
curioussavage大约 6 年前
pretty fun as an experiment. It would be so cool if someday github&#x2F;gitlab had this as an option for editing files
评论 #19745285 未加载
tedmiston大约 6 年前
On mobile I see a blank gray page. Perhaps this only works on desktop browsers. I still have no idea what it is.
评论 #19747582 未加载
ww520大约 6 年前
Think I crashed it. Did a :w foobar and got an error and the page was stuck, with the computer fan ramped up.
sabujp大约 6 年前
i had to turn off adblock plus and ublock origin to get this to work for some reason
fouc大约 6 年前
Will wasm ever use html&#x2F;css properly? Or will it just be more like flash?
评论 #19746519 未加载
评论 #19744878 未加载
lone_haxx0r大约 6 年前
I can&#x27;t save.<p>:w test<p>&quot;test&quot; E667: Fsync failed Warning: original file may be lost or damaged.
yitchelle大约 6 年前
:q! is not working! Help, I can&#x27;t exit.<p>But seriously, this is great work.
odiroot大约 6 年前
Try inputting some diacritics, it breaks spectacularly.<p>Just tried ą ę ł etc ;)
vldr大约 6 年前
Next step will be to bundle this in an electron app.
linsomniac大约 6 年前
Does this get us any closer to being able to edit text fields using vi keybindings? I&#x27;ve tried some of the plugins (long ago) and was underwhelmed with the experience.
评论 #19748087 未加载
SuMu2600大约 6 年前
Is there a good iOS port of Vim available?
评论 #19746544 未加载
mikorym大约 6 年前
What is the use case for this?
User23大约 6 年前
Vi, the original roguelike.
tomrod大约 6 年前
This is so cool! Well done!
netmonk大约 6 年前
How can i save a file ?
评论 #19750546 未加载
diehunde大约 6 年前
Lol. Why no :Explore?
exabrial大约 6 年前
Fucking touchbar.
chris_wot大约 6 年前
Don&#x27;t do :wq
评论 #19744631 未加载
评论 #19744623 未加载
hjk05大约 6 年前
Sounds like a great fun little project. Shame it doesn’t work.
vmarovic大约 6 年前
diw or ciw doesn&#x27;t seem to work :(
nunobrito大约 6 年前
Looks good!<p>How can I close it?
sureaboutthis大约 6 年前
Why was wasm used for this? It&#x27;s not a javascript replacement as stated by webassembly.org.
评论 #19747350 未加载