this post was submitted on 07 Aug 2024
526 points (97.0% liked)

Technology

59605 readers
3438 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] lunarul@lemmy.world 7 points 3 months ago (1 children)

I never use my mouse at all in vim

[–] corsicanguppy@lemmy.ca 1 points 3 months ago (1 children)

You just burn your hands out faster with the higher numbers of up/down motions to get the work done.

[–] bellsDoSing@lemm.ee 0 points 3 months ago

Have you ever learned about the following in VIM:

  • H, M, L, 22H, ...,: vertical cursor placement
  • zt, z0, zb: vertical scroll positioning
  • 0, $, gm, gM: horizontal cursor placement
  • w, e, b: word based cursor movement

Simply holding j or k at times also works, even more so with a decently high key repeat rate.

Of course there's a lot more: https://vimhelp.org/motion.txt.html

The trick is to only learn a couple new movement mappings at a time and use them during one's workflow for a while, up until they feel ingrained. Then repeat, iteratively building up one's movement skills in VIM.

One can say many things about VIM, but not that learning it's movement mappings will make your required APM (let alone mouse clicks) go up to "get stuff done". Honestly, once a basic set of these movements has been learned, any other editor without them will feel like a drag.