On 21/02/12 17:59, Tim Chase wrote:
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
They do *not* perform identically if the current window isn't modified:
in that case, ZZ wil close the current window (and exit Vim if it's the
last window with the possible exception of a help window), :wq will
write it first even if unmodified.
ZZ can be regarded as faster even than :x (with which it _is_
synonymous) in that it uses a single key twice with no change in shift
status between them.
Best regards,
Tony.
--
And so, men, we can see that human skin is an even more complex and
fascinating organ than we thought it was, and if we want to keep it
looking good, we have to care for it as though it were our own. One
approach is to undergo a painful surgical procedure wherein your skin
is turned inside-out, so the young cells are on the outside, but then
of course you have the unpleasant side effect that your insides
gradually fill up with dead old cells and you explode. So this
procedure is pretty much limited to top Hollywood stars for whom
youthful beauty is a career necessity, such as Elizabeth Taylor and
Orson Welles.
-- Dave Barry, "Saving Face"
--
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