3 ms·
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
by Jtsummers 6y ago
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.
- hojjat12000 6y agoI think most people don't know that instead of :wq or :q! they can just ZZ and ZQ
- cassepipe 6y agoor just :x
- ckw 6y agoSpace 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>.