Vim Motions Part 1
April 10, 2025 | Categories: linuxI have been a vim user since the late 90's.. which makes me sound old, but I was quite the kid still. I learned it quite on accident as I couldn't afford anything else and back then vim was the editor that came with the tiny handful of Linux distros. My choice at the time was Slackware and I was hardcore about it as a little teenager. Especially once I had it connected to the phone lines.
It wasn't until the last couple years I super dived into NeoVim and all that it had to offer. Something like an LSP and addons that gave some ncurses super powers.
I want to get into the one thing that has kept me with vim in my professional development carrier. That would be Vim Motions, starting with the VERY basics of movement.
- h, j, k, l Left, Down, Up, Right
- H, M, L: Top, Middle, Bottom of Screen
- w: Move to the start of a word.
- e: Move to the end of a word.
- b: Jump backwards to the start of a word.
- %: Move to matching character ( ), { }, [ ]
- 0: |Zero| Move to the start of a Line.
- $: Jump to the end of the Line.
- gg: Go to the first line of the document.
- G: Go to the bottom line of the document.
- gd: Move to local Declaration.
- gD: Move to Global Declaration.