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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Web Vi

86 点作者 robertmrangel超过 13 年前

9 条评论

thristian超过 13 年前
I had a brief play around with the example, and pretty quickly came across bugs and unimplemented commands (for example: 'b', 'e' and 'O' are missing, but 'o' acts like 'O'). I like the way the cursor changes colour to hint at the current mode.<p>However, what I'd <i>really</i> love would be a bookmarklet I could click to Vi-ify every &#60;textarea&#62; on the current page. I've got "It's All Text" set up in Firefox to open &#60;textearea&#62;s in gvim, but it's still clunkier than editing right there in the page.
评论 #3007574 未加载
评论 #3007614 未加载
评论 #3007672 未加载
评论 #3008396 未加载
评论 #3007568 未加载
nddrylliog超过 13 年前
Wait, are you kidding? It looks a hell of a lot less convincing than, say, jim: <a href="https://github.com/misfo/jim" rel="nofollow">https://github.com/misfo/jim</a><p>edit: For example, 'A' doesn't work.
growt超过 13 年前
The one thing that most vi-mode implementations don't get is that vi(m) is really about the possibility to configure every keystroke. Its not about "j" is "up" and "dd" deletes the current line.
评论 #3009013 未加载
jarek-foksa超过 13 年前
I'm rather skeptical about text editors implemented on top of the canvas element. Mozilla has already tried that with Bespin project and it failed miserably (huge code base, poor performance, limited accessibility).<p>Wouldn't it be easier to just use div element with contentEditable attribute? Currently contentEditable has limited API and a lot of inconstancies across browsers, but in the longer run it seems to be the way to go: <a href="http://ehsanakhgari.org/blog/2011-08-31/future-editing-web" rel="nofollow">http://ehsanakhgari.org/blog/2011-08-31/future-editing-web</a>
评论 #3009120 未加载
cdelahousse超过 13 年前
Here's another example of vi being completely exported to Javascript, but without the canvas element.<p><a href="http://gpl.internetconnection.net/vi/" rel="nofollow">http://gpl.internetconnection.net/vi/</a><p>What disappoints me about all these implementations is the absence of text objects, though. I love getting edition words or parentheses using commands such as caw and ci"
评论 #3009112 未加载
friggeri超过 13 年前
Keybindings are way off on non-qwerty keyboards.
评论 #3007911 未加载
评论 #3009094 未加载
masonforest超过 13 年前
The the ACE editor behind cloud9ide.com seems to be undergoing pretty active development (<a href="https://github.com/ajaxorg/ace" rel="nofollow">https://github.com/ajaxorg/ace</a>).<p>There is also a vim mode under development. <a href="https://github.com/Gozala/vice" rel="nofollow">https://github.com/Gozala/vice</a>
ByteMuse超过 13 年前
This is neat. Although, I can't get by without some VIM commands and is there a way to export text?
rnadna超过 13 年前
0 (zero) does not work.