I've had some success over the past year or two using vim-hardtime to wean myself off using the arrow keys in favour of h, j, k, l. However, I'd really like to wean myself off :q, :wq, etc. in favour of ZQ, ZZ, etc. - the latter are faster (at least in my experience), but my muscle memory is so atuned to :q I need some assistance!
I've tried setting cmap q <nop>
in my ~/.vimrc
, but that doesn't work as intended; it prevents me from the using the q key entirely on the command line. Granted, it's a rare letter, but I still need to use it!
Is there any way I can disable that command temporarily to encourage my use of ZZ and friends?
<c-w>q
. I think there is nothing wrong with doing it bycommand
. On the other hand,Z
is capital, it's a sign of unusual,ZZ
can be replaced with:x
,ZQ
is dangerious, it's:q
with!
. I think you are throwing away good stuff for bad. IMO there is nothing wrong with repeatinghijk
, it's totally fine to usearrow
, you can even usemouse
if you want. The real power ofvim
is customization, it's yours, just do whatever you like.