News for hackers. Stuff that matters.
Re:Moving Fast with the Core Vim Motions by sva_ on Wednesday June 14, 2023 @06:01PM (#36333386)
I think the article is missing

  ctrl-y move up 1 line without moving cursor
  ctrl-e move down 1 line without moving cursor
  ctrl-b move up 1 page, placing cursor on last line
  ctrl-f move down 1 page, placing cursor on first line.
These are really useful when looking around without wanting to edit.
Re:Moving Fast with the Core Vim Motions by grelek on Wednesday June 14, 2023 @06:47PM (#36333911)
Thanks, didn't know about these.
Re:Moving Fast with the Core Vim Motions by sodapopcan on Wednesday June 14, 2023 @06:58PM (#36334037)
I've always used ctrl-e and ctrl-y with `:set scrolloff=2` to make it a bit quicker. It was one of the first things I learned as I found ctrl-d and ctrl-u incredibly jarring and thought there must be another option.
Re:Moving Fast with the Core Vim Motions by simias on Wednesday June 14, 2023 @08:08PM (#36334694)
Like TFA I only use ctrl-u and ctrl-d since it's faster than moving one line at time and not as disorienting (in my experience) as moving one full page at a time.

It's also easy to learn since it's [u]p/[d]own.

Re:Moving Fast with the Core Vim Motions by AdieuToLogic on Wednesday June 14, 2023 @09:47PM (#36335437)
Don't forget the handy "z commands":

  z<CR>      redraw, cursor line to top of window, cursor on first non-blank
  z-         redraw, cursor line at bottom of window, cursor on first non-blank
  z.         redraw, cursor line to center of window, cursor on first non-blank
(source: :help z)
Re:Moving Fast with the Core Vim Motions by cryptonector on Wednesday June 14, 2023 @10:44PM (#36335827)
There's also H (move to the line at the top of the current screenful), L (move to the bottom line in the current screenful), and M (move to the middle line in the current screenful).
Re:Moving Fast with the Core Vim Motions by kagevf on Thursday June 15, 2023 @12:14AM (#36336313)
nH is also good if you want to go to line n from the top. Works in reverse with nL too :)