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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why Kakoune

140 点作者 rc00超过 1 年前

11 条评论

bern4444超过 1 年前
I love that we have so many choices for editors. VSCode, Vim, NeoVim (+ vim distros like astro etc), emacs (+ emacs distros), Kakoune, Helix etc.<p>Its awesome to have so many choices so everyone can pick the system that best fits them. It also encourages better tooling that can fit on top of any of these like the Language Server Protocol, TreeSitter etc which benefit everyone.<p>Thanks to everyone for working on all these projects and tooling, its truly incredible.
评论 #37604480 未加载
satvikpendem超过 1 年前
For those that have used Vim&#x2F;Neovim, Kakoune, Helix and other terminal editors, which one is your favorite? I use VSCode and have been looking to switch, I use Neovim inside VSCode (without the emulation of something like VSCodeVim) [0] which is decent but that&#x27;s mainly because I don&#x27;t want to set up all the plugins for Neovim again. Helix seems interesting because most things are built like with VSCode, it just works™, but I have to learn a new keyboard control scheme.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;vscode-neovim&#x2F;vscode-neovim">https:&#x2F;&#x2F;github.com&#x2F;vscode-neovim&#x2F;vscode-neovim</a>
评论 #37600016 未加载
评论 #37600418 未加载
评论 #37599629 未加载
评论 #37599368 未加载
评论 #37600102 未加载
评论 #37600142 未加载
评论 #37600192 未加载
评论 #37599349 未加载
评论 #37603499 未加载
评论 #37602797 未加载
评论 #37600250 未加载
评论 #37605055 未加载
Conscat超过 1 年前
Kakoune has the nicest regex interaction I&#x27;ve ever used in a text editor. It&#x27;s feature complete and accessible from a single keystroke out of the box. You can write key macros that input regex to do surprisingly complex motions without any scripting language.
welder超过 1 年前
I thought nobody used Kakoune anymore... maybe I&#x27;ll go ahead and fix the bugs in the Kakoune WakaTime plugin <a href="https:&#x2F;&#x2F;github.com&#x2F;WhatNodyn&#x2F;kakoune-wakatime">https:&#x2F;&#x2F;github.com&#x2F;WhatNodyn&#x2F;kakoune-wakatime</a>.
Hammershaft超过 1 年前
I&#x27;m currently using Kak for system configuration, limited shell scripting, and soon, learning Zig. (I use evil emacs for all of my heavy duty coding (lisp mostly))<p>Kak is such an elegant form of modal editing compared to Vim &amp; Emacs. Selection first paired with feedback &amp; suggestions gives Kak a discoverability emacs &amp; vim simply do not approach. This also means you can pick up and learn Kak in a fraction of the time you&#x27;ll learn the others. I recommend finding or creating a purpose for Kak if you&#x27;re interested in the tools you use and how they can be made better.
评论 #37603796 未加载
r3trohack3r超过 1 年前
I&#x27;ve been using Kakoune as a daily driver for about 2 years now. It&#x27;s an order of magnitude better than anything else I&#x27;ve tried (vim, neovim, vscode, atom, jetbrains, codeblocks, notepad++, etc).<p>Especially once you:<p>* enable LSP support<p>* memorize the keybinding<p>* get comfortable with the kakoune scripting language<p>The keybindings were a lot easier to memorize than VIM&#x27;s because of how consistent they are. And they&#x27;re a lot easier to &quot;experiment&quot; with when your memory is fuzzy because you get realtime visual feedback on what your key combinations are building up in memory before it executes.<p>It&#x27;s fast, unbelievably fast - faster than I type no matter what I&#x27;m doing. I never wait for anything unless I&#x27;m shelling out to some &quot;modern&quot; build&#x2F;lint&#x2F;style tool with a script.<p>It works out of the box with tiled window managers (:new opens a new terminal, `kak -c lets you open a new window into an existing editor session, etc.).<p>I can seamlessly move between the system clipboard and buffers using `xclip`, which is the same pattern that lets me seamlessly move between _any unix tool_ and a buffer. I can type `!tree` and get the directory listing for a README.<p>I can `%s [][]bytes&lt;ret&gt;di[]Image` to replace all arrays of images with an explicit type. With LSP support, I can highlight all _references_ the the currently highlighted variable&#x2F;object&#x2F;w.e., then select the entire line each one is on and delete it in like 4 keystrokes.<p>It gives realtime feedback as I type commands so I can see what I&#x27;m selecting in a buffer.<p>Autocomplete is aware of everything from LSP and _every open buffer_, so you can open buffers full of context you&#x27;d like autocomplete to have access to even if LSP isn&#x27;t able to infer it.<p>I can wire up custom commands for each file type using the scripting language in minutes, not hours, to do things like automatically run the language&#x27;s auto formatter.<p>With LSP enabled, I can `gd` on any variable&#x2F;object&#x2F;function&#x2F;w.e. and _immediately_ find myself looking at where it was defined. Even if that definition is the go standard library, Node core, some dependency down inside my node_modules or vendor directory, w.e.<p>With LSP enabled, I get the entire MDN library fact-checking my method signatures and helping me with autocomplete _in realtime_ as I type.<p>Some tips for people wanting to use kakoune:<p>Add this bash script to your PATH as `k`, it lets you open a new window into the current editing session from any terminal - so you can `cd` around the filesystem to look for files of interest and then open them in another terminal&#x27;s editing session top copy stuff over and make autocomplete aware of its contents: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;retrohacker&#x2F;8920d056f4938e8dd263adac5467202d" rel="nofollow noreferrer">https:&#x2F;&#x2F;gist.github.com&#x2F;retrohacker&#x2F;8920d056f4938e8dd263adac...</a><p>Take the contents of `:doc` and put it all into something like Anki (or just make flash cards for yourself). Learning the keybindings by heart is a small investment that will pay massive dividends.<p>Integrate LSP and take a moment to learn the different commands. I can&#x27;t stress this enough.<p>Wait until about 6 months in to bother trying to learn the scripting language. The scripting language is pretty much what you&#x27;ve been using the entire time, you just write it down in a config file instead of typing it into a live session. The scripting language docs don&#x27;t make any sense unless you already know kakoune, it&#x27;s much easier to understand once you have a better feel for how kakoune works.<p>Once you learn the scripting language and have a good feeling for the default keystrokes, you can start mapping a bunch of your common workflows (`!` and `:` commands, buffers, etc) to unused keys, or keys you have no use for.<p>Here is my kakrc for reference, but keep in mind I change this fairly often as my workflows change across code bases: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;retrohacker&#x2F;cfc72d59dbcb14adb5009a264d0e4cf7" rel="nofollow noreferrer">https:&#x2F;&#x2F;gist.github.com&#x2F;retrohacker&#x2F;cfc72d59dbcb14adb5009a26...</a><p>I think the hex to HSLA is a pretty good example of what&#x27;s possible with kakoune. I whipped that up in maybe 10 minutes with a go binary on my path and that hook. I&#x27;m in a code base where I was constantly converting from a color design guide defined in HEX to the code base&#x27;s standard of hsla. Now I just copy into the editor and it auto-fixes it.
DixieDev超过 1 年前
I got quite annoyed with Neovim config at some point and tried out Kakoune, and ended up contributing some window splitting code to the main repo for Sway. I liked it quite a lot, but it&#x27;s not built with Windows in mind so I ended up crawling back to Neovim. I&#x27;d be interested to hear of any Kakoune-like editors with better cross-platform support&#x2F;design.
dang超过 1 年前
Related. Others?<p><i>Even more hindsight on Vim, Helix and Kakoune</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36427267">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36427267</a> - June 2023 (115 comments)<p><i>Why Kakoune – The quest for a better code editor (2016)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36424256">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36424256</a> - June 2023 (89 comments)<p><i>More hindsight on Vim, helix and kakoune</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36066347">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36066347</a> - May 2023 (1 comment)<p><i>Kakoune Code Editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29975052">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29975052</a> - Jan 2022 (170 comments)<p><i>Kakoune, a punk-rock text editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24716187">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24716187</a> - Oct 2020 (2 comments)<p><i>What you could steal from the Kakoune code editor, and get away with</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24685267">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24685267</a> - Oct 2020 (94 comments)<p><i>Kakoune – A Modal Text Editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19313794">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19313794</a> - March 2019 (58 comments)<p><i>Why Kakoune – The quest for a better code editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17781780">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17781780</a> - Aug 2018 (45 comments)<p><i>Why Kakoune – The quest for a better code editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13165919">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13165919</a> - Dec 2016 (327 comments)<p><i>Kakoune: a better code editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13152499">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13152499</a> - Dec 2016 (2 comments)<p><i>Kakoune – An experiment for a better code editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10484653">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10484653</a> - Oct 2015 (34 comments)<p><i>Mawww&#x27;s experiment for a better code editor</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9764028">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9764028</a> - June 2015 (15 comments)
alexvitkov超过 1 年前
Is it worth learning Dvorak? Sure it makes sense on paper, I see the rationale behind it, but I&#x27;ve already been typing on QWERTY all my life and I&#x27;m pretty fast at it. Kakoune is the same thing for me - the things changed from Vim make sense, but I don&#x27;t see it as good enough to offset the facts that:<p>1. Vim is muscle memory for a lot of us. Something that is so similar but not quite the same just fucks with my brain. I have an easier time using stock Emacs bindings than Kakoune, as my brain is not in Vim mode while using it.<p>2. VS Code, Fat Visual Studio, IntelliJ, Emacs, most IDEs&#x2F;text editors, fuck even Compiler Explorer have Vim plugins that range in quality from acceptable to fantastic. You can get a fix for your vim needs even in a disgusting corporate Windows crackhouse environment.<p>3. If you&#x27;re a purist, Vim itself has a great ecosystem, and can be reasonably used for a lot of tasks.
评论 #37600174 未加载
评论 #37598409 未加载
评论 #37598328 未加载
评论 #37599391 未加载
评论 #37599048 未加载
评论 #37602476 未加载
评论 #37598445 未加载
评论 #37599115 未加载
评论 #37598833 未加载
评论 #37601810 未加载
评论 #37599656 未加载
评论 #37602578 未加载
评论 #37600331 未加载
评论 #37600307 未加载
评论 #37600017 未加载
评论 #37602475 未加载
Gualdrapo超过 1 年前
&gt; Kakoune gives you:<p>&gt; Small and understandable core.<p>&gt; Proficiency with POSIX tools, and maybe even some programming languages other than sh.<p>&gt; Structural regular expressions as a central way of text manipulation.<p>&gt; With multiple selections created via regular expressions, acting upon regular expressions.<p>&gt; Fresh take on the modal editing paradigm.<p>I wonder if the author has ever heard of vis[0] which imho fulfills far better each one of those premises<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis">https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis</a>
评论 #37598357 未加载
评论 #37598128 未加载
评论 #37601656 未加载
评论 #37602482 未加载
eviks超过 1 年前
That reads like a why not:<p>&gt; Kakoune made me learn Perl ... Awk ... POSIX sh ... regexes<p>But these aren&#x27;t great ergonomic tools, so it&#x27;s not a good thing that Kakoune &quot;requires&quot; them, it&#x27;s rather a testatment of how much it&#x27;s lacking on its own<p>(though haven&#x27;t used Kak since it&#x27;s unfortunately not x-platform, the selection first paradigm is totally a superior UI to the hidden vim ways)
评论 #37603479 未加载
评论 #37603053 未加载
评论 #37603272 未加载