Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

zz is a neat command, however I find it a little cumbersome to use.

I prefer to use the scroll offset[0] to keep the cursor line always at the center of the screen.

I've been using 'so=20' for a long time now and it feels great.

[0] - https://vim.fandom.com/wiki/Keep_your_cursor_centered_vertic...



Same here. I didn't know about zz and while reading the comments here I didn't understand what all the fuss was about.

Then I realized that I use some alternative setting that makes zz kinda redundant. I use `set scrolloff=3`.


The only problem with this is when you are actually at the bottom of the file. But great tip in general!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: