Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am editing at the bottom of a file, but I want the line I'm editing to appear in the middle of the screen. Is this possible without adding a bunch of spurious newlines at the end of the file?
Of course. Just use zz to move current line to the middle of your vim window.
Additionally you can use ctrl-e and ctrl-y to scroll-up and down.
11 days ago