frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

GrapheneOS – Break Free from Google and Apple

https://blog.tomaszdunia.pl/grapheneos-eng/
599•to3k•5h ago•384 comments

America's Pensions Can't Beat Vanguard but They Can Close Your Hospital

https://www.governance.fyi/p/americas-pensions-cant-beat-a-vanguard
11•bigbobbeeper•42m ago•0 comments

I converted 2D conventional flight tracking into 3D

https://aeris.edbn.me/?city=SFO
21•kewonit•1h ago•6 comments

Four Column ASCII (2017)

https://garbagecollected.org/2017/01/31/four-column-ascii/
263•tempodox•2d ago•60 comments

14-year-old Miles Wu folded origami pattern that holds 10k times its own weight

https://www.smithsonianmag.com/innovation/this-14-year-old-is-using-origami-to-design-emergency-s...
809•bookofjoe•21h ago•175 comments

Hamming Distance for Hybrid Search in SQLite

https://notnotp.com/notes/hamming-distance-for-hybrid-search-in-sqlite/
22•enz•2d ago•1 comments

A Programmer's Loss of Identity

https://ratfactor.com/tech-nope2
117•zdw•3d ago•55 comments

Show HN: Glitchy camera – a circuit-bent camera simulator in the browser

https://glitchycam.com
117•elayabharath•1d ago•15 comments

Rendering the Visible Spectrum

https://brandonli.net/spectra/doc/
112•signa11•3d ago•19 comments

How teaching molecules to think is revealing what a 'mind' is

https://www.newscientist.com/article/2513815-how-teaching-molecules-to-think-is-revealing-what-a-...
51•pella•3d ago•36 comments

Rise of the Triforce

https://dolphin-emu.org/blog/2026/02/16/rise-of-the-triforce/
351•max-m•18h ago•52 comments

Xbox UI Portfolio Site

https://gabrielcabrera.co/
90•valgaze•9h ago•27 comments

Visual introduction to PyTorch

https://0byte.io/articles/pytorch_introduction.html
339•0bytematt•4d ago•25 comments

What your Bluetooth devices reveal

https://blog.dmcc.io/journal/2026-bluetooth-privacy-bluehood/
482•ssgodderidge•1d ago•178 comments

Undo in Vi and Its Successors

https://utcc.utoronto.ca/~cks/space/blog/unix/ViUndoMyViews
23•todsacerdoti•1h ago•23 comments

Rethinking High-School Science Fairs

https://asteriskmag.com/issues/13/rethinking-high-school-science-fairs
48•surprisetalk•3d ago•45 comments

A deep dive into Apple's .car file format

https://dbg.re/posts/car-file-format/
130•MrFinch•3d ago•48 comments

Show HN: Free alternative to Wispr Flow, Superwhisper, and Monologue

https://github.com/zachlatta/freeflow
236•zachlatta•18h ago•110 comments

Poor Deming never stood a chance

https://surfingcomplexity.blog/2026/02/16/poor-deming-never-stood-a-chance/
154•todsacerdoti•13h ago•100 comments

"Token anxiety", a slot machine by any other name

https://jkap.io/token-anxiety-or-a-slot-machine-by-any-other-name/
203•presbyterian•21h ago•184 comments

Ghidra by NSA

https://github.com/NationalSecurityAgency/ghidra
407•handfuloflight•3d ago•206 comments

DBASE on the Kaypro II

https://stonetools.ghost.io/dbase-cpm/
72•TMWNN•3d ago•35 comments

Neurons outside the brain

https://essays.debugyourpain.com/p/you-are-not-just-your-brain
125•yichab0d•20h ago•59 comments

Show HN: Scanned 1927-1945 Daily USFS Work Diary

https://forestrydiary.com/
107•dogline•16h ago•21 comments

Hear the "Amati King Cello", the Oldest Known Cello in Existence

https://www.openculture.com/2021/06/hear-the-amati-king-cello-the-oldest-known-cello-in-existence...
68•tesserato•4d ago•34 comments

Show HN: GitHub "Lines Viewed" extension to keep you sane reviewing long AI PRs

https://chromewebstore.google.com/detail/github-lines-viewed/npledcbofpmjjammgkkoeaehbphhdopi
32•somesortofthing•3d ago•34 comments

State of Show HN: 2025

https://blog.sturdystatistics.com/posts/show_hn/
119•kianN•19h ago•29 comments

Running NanoClaw in a Docker Shell Sandbox

https://www.docker.com/blog/run-nanoclaw-in-docker-shell-sandboxes/
141•four_fifths•16h ago•68 comments

Turing Labs (YC W20) Is Hiring – Founding GTM Sales Hacker

1•turinglabs•18h ago

Show HN: Jemini – Gemini for the Epstein Files

https://jmail.world/jemini
429•dvrp•1d ago•83 comments
Open in hackernews

Undo in Vi and Its Successors

https://utcc.utoronto.ca/~cks/space/blog/unix/ViUndoMyViews
23•todsacerdoti•1h ago

Comments

comrade1234•1h ago
:q! !! ;-)
loloquwowndueo•1h ago
Ah, I see you’re a man of culture as well.
bregma•1h ago
Do you mean

    :e!
by any chance?
Lio•1h ago
It's not mentioned in the article but Vim (and NeoVim) keep undo/redo history in a tree rather than a simple linear timeline[1].

The practical usage is it's aways possible to get back to a previous state you were in, which is pretty neat.

e.g. You can undo 5 changes, try something else and decide that you prefered the text before you started undoing things. In most programs with a linear undo history you've wiped out your previous changes but not in Vim.

You can hop about the branches of the undo tree using the g+ and g- commands but it's much easier to add an undo tree visualiser plugin such as the venerable old Gundo[2].

1. https://neovim.io/doc/user/undo.html

2. https://docs.stevelosh.com/gundo.vim/

bradrn•1h ago
Emacs has this too, with ‘undo-tree-mode’.

(Incidentally, the documentation is wonderful: ‘The only downside to this more advanced yet simpler undo system is that it was inspired by Vim. But, after all, most successful religions steal the best ideas from their competitors!’)

nothrabannosir•1h ago
undo-tree-visualize is easily one of the biggest wow factors for unfamiliar users. Cannot unsee, cannot go back.
ghosty141•50m ago
I had occasional problems with undo-tree (the tree broke occasionally), I've been using vundo for a while now and I'm a lot more happy with that.
sepeth•7m ago
I haven’t been using Emacs for a long time now, but isn’t the Emacs way better? With undo tree you don’t lose any history, but the same is true for what Emacs does by default and it is much easier to navigate the history, since every change is part of a linear history and undos and redos also get added to it.
gmmachine•2m ago
Strange, I love GNU screen, and find the key combinations very easy and intuitive. However, I could never seem to master GNU's Emacs and what I find are very strange default key commands. I love vim for the reason of, what I personally find, very intuitive key combinations.

I just downloaded VSCode for the first time recently -- which I was delighted to find has a VIM mode. From what I read VSCode's VIM mode does not respect the undo tree of actual VIM.

boltzmann64•1h ago
If you are going to need this, then you should use git instead of relying on the editor's undo tree.
sodapopcan•1h ago
They are both useful. I'm a frequent committer but find myself using this, I wanna say, 0 - 3 times per month. It's one of those things that when you want it, you're really glad it exists.
Waterluvian•1h ago
Consider this capability being used over the span of seconds as just another text editing tool. It would be like saying we don’t need undo/redo at all, just use git.
Lio•1h ago
You could if you remembered to make commits between every small, low value text edit. :P

Meanwhile the undo/redo tree is always there, ready to use and has no overhead. You can ignore it completely until you need it to save your arse.

sodapopcan•1h ago
I figured that this was what this article was going to be about.
embedding-shape•1m ago
I thought so too, it's a part I've always struggled with effectively using, cause I get lost so quickly so was happy for a moment. But then reading the comments first, I got disappointed before I even had a chance to open the article.
Sharlin•1h ago
I had almost forgotten that single-level undo was ever a thing. I'm sure there are some applications still in production use that don't support multi-level undo/redo though.
gpvos•1h ago
Its inscrutable undo and redo behaviour is probably the main reason why I never really tried to get further into Emacs. And that's when I had just access to original vi, not vim.
iberator•1h ago
All I need is a classic bad VI. Only thing lacking is syntax colours and multiple undo. I hate when people using ViM claim that they are vi users or experts...

I miss elVis also. ViM should be banned from all distros because it is literally nag-ware and charity ware (Uganda 's children thing). 30 years later we still can't edit files bigger than RAM size unless you want to use swap file ...

Even commodore 64 had editors which could edit files bigger than RAM and WITHOUT ANY kind of swapping to the disk.

/rant

zabzonk•52m ago
> WITHOUT ANY kind of swapping to the disk

how?

ale•1h ago
I've always remapped ctrl+r to U as u (undo) and U (redo) feel more consistent with other shortcuts. I suspect this already is very common.
ryanmcbride•45m ago
I do the same, the ctrl+r always seemed strange to me for this
linsomniac•46m ago
Don't forget time-travel undo. If you get into a weird state with the undo tree, and g+/g- aren't helping, you can do ":earlier 5m" to go back to where you were 5 minutes ago, and ":later 30s" to step forward.

Unfortunately, when you're at "now" you can't do ":later 30m" to see the future.

Etheryte•44m ago
I was gonna make a quip that someone should really get on the ":later" feature, but then I realized that the modern LLM craze more or less is that feature.