Hello John,

I am a long-time user of vi so I know about ZZ
Sometimes I need to open files in view to search for this and that.
>From there the only exit is quit and I was looking for a faster way to do that 
>than :q!.  

On my old keyboard it was a single character, the key so far on the right that
I never hit it accidentally. I like my new keyboard (diNovo Edge for Mac), but 
its function keys are not programmable, hence my interest in abbrevs.

Anyway, what is ZQ doing?

Thank you,

Miklos

On 07/02/2010, at 10:02 AM, John Beckett wrote:

> Miklos Somogyi wrote:
>> cabbrev ;; :q!<CR>
>> should quit a session but it does not. What's wrong?
> 
> It's been explained that you need a mapping.
> 
> However, that's a really dangerous thing to do! A key fumble
> will quit with no warning and you might lose work.
> 
> Also, if you want an easy alternative to :q!<CR> there is always
> ZQ (and ZZ is :wq<CR> except ZZ is like :x<CR> and only writes
> if changes have been made).
> 
> John
> 
> -- 
> You received this message from the "vim_use" maillist.
> For more information, visit http://www.vim.org/maillist.php

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to