News for hackers. Stuff that matters.
Re:Amp: Vi-like terminal editor written in Rust by Jtsummers on Monday April 12, 2021 @11:49AM (#26780774)
What would you do to shorten exiting vim?

  <esc> :wq
Is the longest it's ever been for me and

  :q
Is the norm if I'm in visual mode and haven't edited the buffer.
Re:Amp: Vi-like terminal editor written in Rust by ckw on Monday April 12, 2021 @05:03PM (#26785159)
Space is my leader key, save is mapped to <leader>w, exit is mapped to <leader>q, and <esc> is mapped to jk. So nominally exiting from insert mode in an unsaved buffer (jk<space>w<space>q) is the same number of key presses as <esc><shift>;wq<return>, but in practice, in my opinion, jk is superior to <esc>, <space>w is superior to <shift>;w<return>, <space>q is superior to <shift>;q<return>, and <space>w<space>q is superior to <shift>;wq<return>.
Re:Amp: Vi-like terminal editor written in Rust by hojjat12000 on Monday April 12, 2021 @12:02PM (#26780979)
I think most people don't know that instead of :wq or :q! they can just ZZ and ZQ
Re:Amp: Vi-like terminal editor written in Rust by cassepipe on Monday April 12, 2021 @12:36PM (#26781509)
or just :x