The To Line Movements In Vim
Today I learned that there are To Line movements in Vim. Well, I used them before, but I forgot them. Now I'm writing this article so I'll never forget them again. 🤩
The To Line movements are
[count] G Goto line count. If you do not specify a count, the default line will be the last line of the file. If you provide a count, it will jump to that exact line of the file.
[count] H Go to the line, which is count lines from home (top of the window). It will not jump to the top of the file, but the top of the window.
M Will jump to the middle of the window.
[count] L Got to the last line of the window. When you provide a count, it will offset it by count lines.