Weekly Vim Focus: Week 3

It has been a while since the last posts from this series, so the title weekly doesn’t really apply. The previous 2 bite-sized commitments to improve my Vim skills worked well, with about 75% of the things I tried to internalize now in daily use. This week I will focus on some movements, sticking to the number 4.

  • H and L move to top and bottom screen.
  • ctrl+F and ctlr+B move a page forward and back.
    I find the behaviour of this a bit strange, because it places you on the second to last line of the current page.
  • ' followed by a mark moves to the line of that mark.
    Useful automatic marks are . for the location of the last edit and ' for the location before the last jump.
  • nG moves to line n.
    I used to use :n for this, but that is not really a movement and thus can’t be combined with other commands.

For more movements also have a look at this Vim Movements Wallpaper. I won’t use it personally, but it makes for a handy reference.

Advertisement

1 thought on “Weekly Vim Focus: Week 3”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s