Tuesday, February 21, 2012

Using z in vim

Hi,
   There should be a way to make the current line that you're on scroll to the top of the screen right?
I've googled for "vim scrolling" or "vim z". Apparently Google's search is not case sensitive.
   Hitting z twice will make the current line that you're on scroll to the center of the screen.
But I don't want that. I want to make the current line that I'm on scroll to the TOP of the screen.
Is that possible?
  The z key seems a bit overloaded, because zf will create a fold, zo opens it, zc will close a fold, etc.
I vaguely remember hitting some key combination to get this feature of "scrolling to the top of the screen
while still staying on the same line".
  On a somewhat related note, I notice that ZZ will quit. But isn't that exactly what :wq does?
What's the difference?

Thanks,
Ven

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment