News for hackers. Stuff that matters.
Re:Tell HN: '' in Vim moves cursor to recent line by nequo on Monday August 07, 2023 @09:10AM (#37033949)
> By contrast, in Vim you use $ to move to end of line, and ^ to move to begin of line. Not only is it unintuitive, it requires more strain of my hands/fingers

It is intuitive if you use regular expressions too because ^ and $ have (nearly) the same meaning there. But you’re right that your shortcuts work well too.

Other shortcuts that come in useful with no non-Vim equivalent that I know of:

  vi" to select the content of a string
  ca" to change a string
  va{y to select and copy (“yank”) the contents of a curly-brace block
  } to move one paragraph forward
  ) to move one sentence forward
  v) to select the next sentence

There are no comments on this comment yet.