TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Vis – A vi-like editor based on Plan 9's structural regular expressions

170 pointsby woobyover 7 years ago

10 comments

gwn7over 7 years ago
I&#x27;ve been using vis as my primary editor for six months, and I&#x27;m quite happy with it. (I&#x27;m a long time vim user.)<p>Main selling points for me:<p>- Simple editor, easy to learn, with a ~650 line man page as the documentation<p>- Simple, yet has the most useful features from the great vim and sam editors<p>- No feature bloat - unlike vim<p>- No vimscript (lua instead)<p>- Readable and hackable codebase - unlike vim<p>- Structural regular expressions<p>For now the unavailable features that I miss the most are tag browsing and code folding. I don&#x27;t miss them very much in sufficiently clean and modular codebases, but they are indispensable when analyzing large, complex, or badly written code. I switch to vim when that is the case. I should say that their implementation is considered though:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis&#x2F;issues&#x2F;547" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis&#x2F;issues&#x2F;547</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis&#x2F;issues&#x2F;342" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis&#x2F;issues&#x2F;342</a><p>vis is highly recommended to anybody looking for a better vim and appreciate &amp; know how to use vim without a gazillion of plugins.
评论 #15716213 未加载
评论 #15718028 未加载
pmoriartyover 7 years ago
Anyone interested in what structural regular expressions are and how they&#x27;re superior to ordinary regular expressions is encouraged to read:<p><a href="http:&#x2F;&#x2F;doc.cat-v.org&#x2F;bell_labs&#x2F;structural_regexps&#x2F;se.pdf" rel="nofollow">http:&#x2F;&#x2F;doc.cat-v.org&#x2F;bell_labs&#x2F;structural_regexps&#x2F;se.pdf</a>
评论 #15717685 未加载
评论 #15718250 未加载
doozyover 7 years ago
This is an excellent vi-like editor. I&#x27;ve been using it for a while as a lightweight vim alternative and have few complains.<p>The name choice is unfortunate, as it clashes with the vis(1) command, which has existed since 4.4BSD
评论 #15717129 未加载
PuercoPopover 7 years ago
I used Vis full time for a two weeks a couple of months ago. It was pretty nifty. (I&#x27;m Emacs user so this was an time-bounded experiment).<p>Vis is a great of example of the suckless philosophy and of Guy Steele&#x27;s point about removing the need of features by having synergy between other features. For example they have an immutable piece table to support undo by just moving a pointer. This would mean that as the buffer remains open one would use more and more memory. Instead of implementation a &#x27;garbarge collector&#x27; they chose to automatically close a file when its not shown on the screen.
评论 #15713642 未加载
评论 #15716007 未加载
评论 #15715818 未加载
RIMRover 7 years ago
It always amazes me that Plan 9, which is widely regarded as a joke OS, has continues to inspire new software with the different way it did just about everything.<p>I have P9 VM, and I have never quite understood what I am doing with it, but I keep hearing of developers borrowing from its codebase to make exciting new software.<p>I also find SSSPC and TempleOS to be entertaining OSs to explore, as they are so very different from the OSs I am used to.
评论 #15717647 未加载
gbrown_over 7 years ago
A nod to Data Structures for Text Sequences by Charles Crowley as Vis utilizes the piece chain.<p>[1] <a href="https:&#x2F;&#x2F;www.cs.unm.edu&#x2F;~crowley&#x2F;papers&#x2F;sds.pdf" rel="nofollow">https:&#x2F;&#x2F;www.cs.unm.edu&#x2F;~crowley&#x2F;papers&#x2F;sds.pdf</a>
fiatjafover 7 years ago
Is it faster than kakoune? I tried switching from vim to kakoune a while ago, but it was horribly slow.
评论 #15714186 未加载
评论 #15712742 未加载
zitterbewegungover 7 years ago
Any emacs mode that does a similar thing to this?
评论 #15714581 未加载
jaytaylorover 7 years ago
I&#x27;m unable to get it to build on a mac. Wish there was a pre-built binary available so I could try it out!
PeachPlumover 7 years ago
See also ports of plan9&#x27;s Sam<p><a href="http:&#x2F;&#x2F;sam.cat-v.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;sam.cat-v.org&#x2F;</a>