News for hackers. Stuff that matters.
Re:Vim: ZZ and zz: Do you know the difference? by vault on Monday January 09, 2023 @05:07AM (#34308688)
The source you copied this from offers a simpler version:

  " Center screen on next/previous selection.
  nnoremap n nzz
  nnoremap N Nzz
  " Last and next jump should center too.
  nnoremap <C-o> <C-o>zz
  nnoremap <C-i> <C-i>zz
Re:Vim: ZZ and zz: Do you know the difference? by pawelduda on Monday January 09, 2023 @05:14AM (#34308727)
I copied it from my vimrc, I don't recall after many years where it came from :)