> I wonder why some people use :wq instead of ZZ. Maybe they 
> just don't know about ZZ? Obviously that's not the case with Bram.


I added the following to my vimrc:

" Exit VIM, but prompt if any changes to save
nnoremap ZX :conf qa<CR>

I routinely have many files open at the sametime (hidden is set).
So when I close Vim, I press ZX.
Vim will prompt me for each and every buffer that was modified if I want to
save.

I like the prompt since I can decide quickly whether I want the file saved
or not and not have to issue any further commands to find the next modified
buffer.

HTH,
Dave


Reply via email to