3 ms·
huh. I'm using ZZ all the time, but I thought it is :wq
by codesnik 4y ago
huh. I'm using ZZ all the time, but I thought it is :wq
- cmeacham98 4y agoIt's possible it was at some point, but my local copy of vim tells me it is 'same as ":x"' in `:help ZZ`
- sodapopcan 4y agoYou never accidentally used it on an unnamed buffer?
- codesnik 4y agounnamed as [No Name]? both :wq and ZZ (:x) do the same: "E32: No file name"
- sodapopcan 4y agoSorry, unnamed AND unmodified. My bad. And actual advantage here is that `ZZ` can be your "quietly quit anything" key. It'll close quickfix, locationlist, previewwindow, etc without complaining.