logoalt Hacker News

busfahreryesterday at 4:53 PM1 replyview on HN

More often than L and H, I use { and }, which jumps across paragraphs (i.e. blocks of lines separated by blank lines).

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.


Replies

wonger_yesterday at 5:11 PM

I rebound ctrl+j/k to scroll about a third or fourth of the screen (~20 lines?) as an alternative to ctrl+d.

I've been using { and } more as well. Mostly to navigate paragraphs of prose, but sometimes for code too.

show 1 reply