I often see that I want to scroll the Vim window so that the line I was working on is about a quarter of the screen down, it provides more breathing space than z t, but has more code displayed than z z. It is also useful when my cursor is at the beginning of the function I want to read, but z tdisables comments like Javadoc.
Is there any magic I can use to do this? I'm afraid I don't understand Vim scripts at all.
source
share