amVim-for-VSCode icon indicating copy to clipboard operation
amVim-for-VSCode copied to clipboard

Implement ZZ and ZQ

Open tangentsoft opened this issue 9 years ago • 4 comments

These save the current file and exit the editor, or just exit without saving.

tangentsoft avatar Jun 30 '16 03:06 tangentsoft

As far as I know, zz is used to redraw current line at center of window.

rebornix avatar Oct 16 '16 22:10 rebornix

@rebornix: zz is not the same thing as ZZ.

tangentsoft avatar Oct 16 '16 22:10 tangentsoft

@tangentsoft sorry for that :)

rebornix avatar Oct 17 '16 03:10 rebornix

Implementing ZZ should be doable, since :wq and :x already exist (although they just close all tabs and don't quit the editor completely).

ZQ is more challenging, because I'm not sure if there is a way to programmatically skip the popups prompting you to save.

alisonatwork avatar Nov 16 '22 01:11 alisonatwork