Comment

Comment by pawelduda

Quick pro tip for zz, I pair zz with search/jumps, so the next match/jump location ends up centered.

Edit: more elegant solution https://news.ycombinator.com/item?id=34308688

  " Center screen on next/previous selection.
  nmap n /<CR>zz
  nmap N ?<CR>zz
  " Last and next jump should center too.
  nnoremap <C-o> <C-o>zz
  nnoremap <C-i> <C-i>zz
parent pawelduda 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton