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.
Lmove to top and bottom screen.
ctlr+Bmove 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.
nGmoves to line n.
I used to use
:nfor 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.
1 thought on “Weekly Vim Focus: Week 3”
I swear by this .vimrc myself. Take a look: https://github.com/luan/vimfiles — I love it so much I gave up on my own vimrc: https://github.com/siddhuwarrier/bash-recipes/blob/master/setup_vim.sh