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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Vy – A Vim-like in Python made from scratch

116 点作者 ecthiender超过 9 年前

14 条评论

shadowmint超过 9 年前
Curious, want to try it yourself before you flame it to death for being in python 2 or claiming to be remotely plausible as a vim substitute?<p><pre><code> git clone https:&#x2F;&#x2F;github.com&#x2F;iogf&#x2F;vy cd vy virtualenv . .&#x2F;bin&#x2F;pip install untwisted pygments .&#x2F;bin&#x2F;python setup.py install </code></pre> You&#x27;ll probably want to edit &#x2F;vyapp&#x2F;plugins&#x2F;toggle_mode.py to use a KeyPress binding that is valid for your platform at this point, or you&#x27;ll get:<p><pre><code> _tkinter.TclError: bad event type or keysym &quot;Apostrophe&quot; </code></pre> ...and finally,<p><pre><code> .&#x2F;bin&#x2F;vy </code></pre> Right, now you can start playing wading your way through <a href="https:&#x2F;&#x2F;github.com&#x2F;iogf&#x2F;vy&#x2F;blob&#x2F;master&#x2F;INTRO.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iogf&#x2F;vy&#x2F;blob&#x2F;master&#x2F;INTRO.md</a> and try to understand the command syntax.<p>Good luck!<p>Vim clones are a dime a dozen; this is actually an entirely different thing, and although I can&#x27;t imagine actually using it for anything... it&#x27;s interesting to see people work on different approaches to text editors.<p>A simple hackable python text editor may not be useful in the long term for anything (for all the reasons about distributing python and python performance limitations), but its certainly viable for prototyping interesting features.
评论 #10159668 未加载
emilssolmanis超过 9 年前
&gt; [..] on top of tkinter which is one of the most productive graphical toolkits.<p>&gt; ..<p>&gt; [..] on top of Tkinter that is such a great graphical toolkit.<p>Right. About as great as pulling teeth. Not that there&#x27;s many alternatives, of course...
评论 #10158939 未加载
评论 #10159964 未加载
评论 #10158982 未加载
blux超过 9 年前
&gt; The source code of the syntax highlighting plugin is about 80 lines of code.<p>Which is not that big of an achievement considering it depends on pygments for syntax highlighting...
michaelmrose超过 9 年前
I don&#x27;t believe Bram said it would replace vim I think he took something out of context.
santiagobasulto超过 9 年前
&quot;I&#x27;m working on a ncurses based library with a symmetrical archicture to python tkinter&quot;. That sounds nice.<p>I&#x27;d suggest don&#x27;t work trying to replace vim in the future. Work to learn and to fix any necessity that by some reason vim is not fulfilling for you. Then the world will say...<p>The project has a good architecture (plugins seem interesting). But it could use some tidying up.
评论 #10158815 未加载
xmstr超过 9 年前
Looks interesting but why not Python 3.x?
评论 #10159674 未加载
OJFord超过 9 年前
<p><pre><code> &gt; a great chance to substitute vim in the future. </code></pre> Why? What&#x27;s the advantage over vim?
评论 #10158780 未加载
评论 #10158983 未加载
stevebmark超过 9 年前
Interesting project. Vim is riddled with issues and we badly need a replacement (coming from a dedicated Vim user). Currently VimR and NeoVim are in the lead for tackling some of the hard problems (async calls, a real plugin system, obvious features like fuzzy finder with good UI integration, etc).<p>I found this part amusing: &quot;What did Bram Moolenaar say&quot;. After using Vim for a few years, and seeing his design choices, I wouldn&#x27;t personally be interested in his opinion of an editor!
florianletsch超过 9 年前
Hm, why do most of his files end with 10 to 15 blank lines of whitespace? Is that a thing or was he just sloppy?
评论 #10160295 未加载
reikonomusha超过 9 年前
Am I wrong in thinking that this is a Tk Text widget (or possibly several), with a selection of functions atop? Plugins for the most part are just key press callbacks which manipulate this Text widget and associated state?<p>I know every project must start somewhere but this doesn&#x27;t seem to have considerable substance for a purported next gen vi(m), and given its heavy reliance on pre-made tools (like text areas), without much abstraction, it seems like it would be hard to get over the hump to make it competitive with existing editors.
qznc超过 9 年前
Looks similar to <a href="http:&#x2F;&#x2F;www.vixn.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.vixn.org&#x2F;</a>
mden超过 9 年前
Some of the cleanest code I&#x27;ve seen! Pretty fun skimming through files and functions.
评论 #10161135 未加载
synparb超过 9 年前
pyvim (<a href="https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;pyvim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;pyvim</a>) is also a pretty slick vim clone in python that uses the python prompt toolkit (<a href="https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;python-prompt-toolkit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;python-prompt-toolkit</a>)
评论 #10159454 未加载
alphakiller超过 9 年前
this is cool. <a href="https:&#x2F;&#x2F;youtu.be&#x2F;HXvjh1p7gSY" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;HXvjh1p7gSY</a>