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.

Kakoune – An experiment for a better code editor

143 pointsby Somasisover 9 years ago

10 comments

Directover 9 years ago
I tried switching to this editor permanently from vim. The selection based movements are asurdly good, I could kill for something like this in vim.<p>However I couldn&#x27;t stick with it for two reasons. The first is when I went to figure out how to customise it, I found that the customisation is essentially vim like but weaker. Everything is hardcoded like it would be in vim but with less options. If you&#x27;re used to Emacs insane customization, this is the other end of the spectrum. The stuff that IS customisable works by executing embedded bash scripts[1]!? You can only embed these in specific hooks and places, so it&#x27;s really limited, and platform specific. Install this on a system missing a bash feature someone is using and who knows how it&#x27;ll behave.<p>Basically, the features implemented are gorgeous, but past that I can&#x27;t stick with it. Just going to consider trying to port the selection based movements to a vim plugin but I think it&#x27;ll be a challenge.<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;mawww&#x2F;kakoune&#x2F;blob&#x2F;master&#x2F;rc&#x2F;clang.kak" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mawww&#x2F;kakoune&#x2F;blob&#x2F;master&#x2F;rc&#x2F;clang.kak</a>
评论 #10486075 未加载
评论 #10485800 未加载
pkkpover 9 years ago
You&#x27;ll want to take a look at your site&#x27;s theme on mobile devices. On my iPhone 6 on iOS 9 (Safari), the navigation bar is fixed at the top half of the pane and takes up over half the screen.
评论 #10484988 未加载
评论 #10485399 未加载
chc4over 9 years ago
I&#x27;ve played with Kakoune a little bit not that long ago. It&#x27;s actually pretty nice. By far the best feature is the popup that lists all the sub-actions for chords: imagine if, when you press &quot;g&quot; in Vim, it lists all keys you press after AND what they do. It makes it very easy to figure out new behavior. The idea of working on selections is also very intuitive and works well, both in vim compatability and ease of use.<p>The biggest issue I had with it, that made me return to Vim instead of try and keep with Kakoune, are the lack of options. A lot of the settings appear to be hardcoded, with no way to set them even with : commands. While it does have scripting support, and a lot of the core application is implemented with it, there doesn&#x27;t seem to be any docs on how it works or any community behind it.
评论 #10485382 未加载
评论 #10486083 未加载
评论 #10485867 未加载
cpfohlover 9 years ago
I can&#x27;t even say how happy it made me that Clippy made it into a CLI program. Is that a common joke I&#x27;ve just missed elsewhere?
评论 #10485074 未加载
h2077545over 9 years ago
Kakoune seems great and I hope I will eventually make the switch from vim but there are currently 3 things holding me back.<p>1. Slime-like interaction: In vim I&#x27;m used to [vim-slime](<a href="https:&#x2F;&#x2F;github.com&#x2F;jpalardy&#x2F;vim-slime" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jpalardy&#x2F;vim-slime</a>) for interactive languages such as python but I couldn&#x27;t yet find an equivalent way to do it in kakoune. I suspect there is an easy way to do something like this using `:new` or the tmux integration but I don&#x27;t know how.<p>2. Executing commands in the underlying shell: With C&#x2F;C++ I usually need to work only with a single file and a fast compile-run cycle. I have simple functions defined for compile and run in my vimrc so that I can do it with a simple key map but I&#x27;m not sure how to do this in kakoune. The problem is sometimes output of my program exceeds one line so `:echo` is not quite useful here.<p>3. ctags&#x2F;cscope integration: I haven&#x27;t really checked this yet but I need something for jumping around in large codebases.
评论 #10486738 未加载
mercurialover 9 years ago
It looks nice, and I assume the underlying code is less gnarly than vim&#x27;s, but I don&#x27;t see the radical improvement over vim which would make me switch (also, obviously, it&#x27;s not going to benefit from the huge ecosystem of vim plugins).<p>What I think would be a killer for a vim successor would be to keep the best-in-class editor functionality, add decent extensibility (not vimscript) in the core product. Then add support for stuff commonly found in IDEs: notion of projects&#x2F;subprojects, API to support plugging syntax parsers easily, source control integration, etc., and offer core plugins for a few popular languages.
openfutureover 9 years ago
I&#x27;m hoping neovim will be able to adapt these ideas in the future.<p>They&#x27;re addressing all the hardcoded parts so it should be possible to make any of these with an addon &#x2F; some nvimrc magic.
GhotiFishover 9 years ago
First impressions with this editor are <i>very</i> good.<p>One thing I&#x27;m not 100% sure how to do is substituions with references<p>so if I want to change the all the strings &quot;foo(5, bar)&quot; to &quot;baz(bar).foo(5)&quot;<p>with 5 and bar being arbitrary strings. How could I do that? In vim I would use a regex expression and refer to matching sections with &quot;%s&#x2F;foo(\([^,]+\), \([^)]+\))&#x2F;baz(\2).foo(\1)&#x2F;gc&quot;. In Kakoune it seems I might have to do some multiselect shenanigans, the regex has better escaping for my taste, but I can&#x27;t match on specific selections. So I can&#x27;t shuffle them arbitrarily.<p>I looked through the vim golf challenges and couldn&#x27;t find Kakoune doing an operation like this.<p>mawww, do you have some screencasts of you using this editor? I would be nice to have some live demonstrations showing off useful and common usage patterns for it.
评论 #10490830 未加载
quanticleover 9 years ago
One piece of feedback about the website itself: the actual reading area is unusably small when viewed on a mobile device. Here&#x27;s a screenshot:<a href="http:&#x2F;&#x2F;imgur.com&#x2F;yvOGc02" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;yvOGc02</a>. Note that the menu doesn&#x27;t hide, so &gt;50% of the screen is occupied by a static menu that&#x27;s irrelevant to the actual content I&#x27;m trying to read.
eccstartupover 9 years ago
Documentation in PDF available?