Tuesday, February 21, 2012

Re: Using z in vim

On 02/21/12 10:39, Ven Tadipatri wrote:
> But I don't want that. I want to make the current line that I'm on scroll
> to the TOP of the screen.

You want either "zt" or "z<cr>" depending on whether you want to
reset the cursor to the first column:

:help zt
:help z<CR>

> On a somewhat related note, I notice that ZZ will quit. But isn't that
> exactly what :wq does?

One character :)

The both perform identically. I generally prefer building up
what I want to do by combining elements, so I tend to think
progressively in terms of "(w)rite (q) (a)ll really(!)" and then
drop in the respective elements into my command-prompt. I only
use "ZZ" when playing VimGolf.com which saves me one extra
character. :)

-tim


--
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