ZZ:ZZ

When a colleague asked me at what time I go to sleep, I answered at eight to half past ten.

They found this oddly specific.

By that remark, I could tell they sleep with their phone next to them.

For an editor that is famous for first-time users being unable to quit (for the wrong reasons), vim has a lot of ways to quit. The most basic of course is to switch to Ex using: and then type q. If your text is dirty (for the wrong reasons) you’ll have to add a w to write it to disk or a! to quit without that.

I don’t think I ever do that. I use:q to quit sometimes when I forgot to sudo(8) or:w to write to disk while continuing with the text. But closing vim while writing to disk, I quit in style, using ZZ (without the colon).

As if putting vim to sleep.

Which brings me back to my sleeping time.

I get up at 6:30 every morning (at 7:00 in the weekends but even then I still wake up at 6:30), so 6:30 minus 8:00 of sleep is 22:30, but I do need a few minutes to fall asleep, so every night at 22:22, I close my eyes.

As if my alarm clock is putting me to sleep.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论