Vimgraph
Posted2 months agoActive2 months ago
resources.wolframcloud.comTechstory
calmmixed
Debate
60/100
VimGraph TheoryProductivity
Key topics
Vim
Graph Theory
Productivity
VimGraph is a Wolfram resource that visualizes Vim movements as a graph, sparking discussion about its usefulness and potential applications.
Snapshot generated from the HN discussion
Discussion Activity
Moderate engagementFirst comment
12m
Peak period
9
0-2h
Avg / period
3
Comment distribution30 data points
Loading chart...
Based on 30 loaded comments
Key moments
- 01Story posted
Nov 3, 2025 at 8:40 AM EST
2 months ago
Step 01 - 02First comment
Nov 3, 2025 at 8:53 AM EST
12m after posting
Step 02 - 03Peak activity
9 comments in 0-2h
Hottest window of the conversation
Step 03 - 04Latest activity
Nov 4, 2025 at 2:13 PM EST
2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45798838Type: storyLast synced: 11/20/2025, 3:41:08 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Forgive my ignorance!
I've been trying that with smaller models and had to make some adjustments (e.g. they all really wanted to include the filename twice). So I just make a small tweak and bam suddenly I can edit code with small fast cheap models.
In short, it's developing in the wrong direction.
I switched from Mathematica to Matlab in my work; it was the best investment of time in the entire project
``` Here is a 35 keystrokes solution that beat your 36 keystrokes solution ! <89 keystrokes> ```
And then it keeps looping in the same way if you ask it about the seahorse emoji (or sometimes just lie about the keystrokes number).
In fact that's not surprising, what is rather surprising is that some of the solutions actually work (>= 100 keystrokes)
I'd like to submit this has no practicality from a Vim tutorial perspective. However, from the perspective of anyone wanting to learn about graph theory and who understands the concepts of typing efficiency incorporated in Vim key movements, this could be very interesting.
Kind of like many other things using Wolfram - a personal notebook that someone found interesting or useful, take it or leave it.
Good remappings/config would also significantly alter your experience.
In the example, why would you even move with single chars and not words or to the end of line? I think it's definitely a poor example because the point of the diagram/investigation is not clearly described.
If you expand the "Scope" section you'll see more examples. The reason the initial example is restricted is probably because of how noisy those other graphs are when all (or more) movement commands are available. They make poor initial examples.
Conveying information through images is all about making something understood, not about graph completeness.
I'm curious about something a bit different. Given a vim buffer, and picking two caret locations in it, I'd like a tool that shows only the paths to getting there with my current Vim setup (including all the plugins).
After 10 years of using vim, I rarely use L and H. For horizontal moving it's almost always F or S (vim-sneak).
I've found that most of my code consists of 3-5 line blocks, and { and } feel like a nice medium-range navigation tool, because oftentimes CTRL+D jumps too far.
The downside is that both of these jumps go into the jump table, so they will clutter your CTRL+O history a bit.
But I think I'm weird in this regard.
I've been using { and } more as well. Mostly to navigate paragraphs of prose, but sometimes for code too.
When I experimented with scrolling, I found it hard not to lose understanding where I just scrolled from. What helped immensely was defining a top and bottom margin and using vim-smoothie.
(seems to occur quite often with tutorials/documentation where the author has the topic they're showcasing top of mind, and naturally, but unnecessarily, uses the topic itself in examples, making it confusing for new readers to distinguish concept from arbitrary example)
For anyone wondering what's going on, "How do I\nexit vim?" is completely arbitrary text. This VimGraph function accepts this (or any other) text as an input, and shows the keys you could press to get from one place in the text to another using vim. The example limits the keys to just three (k, l, and w) presumably to not let things get too cluttered. (there's a curious 'crown' shaped key, which I suspect is a rendering bug where a 'w' and 'l' have been placed on top of one another).
I'd love to see a comparison between Vim and Kakoune or Helix.
A shout out to quick-scope (https://github.com/unblevable/quick-scope) possibly the best named vim plugin.