Often the mechanism to end up in the command line window is a transposition typo q:
instead of :q
when I intend to be closing Vim.
You can imagine the frustration at this point because the program state is now such that I have to (more carefully) type TWO more proper :q
to achieve my goal. Although I do have, and can use a nice easy normal mode chord bind <s-q>
for :q
, my muscle memory and habits (using non-augmented vims) lead me to continue to use :q
, so it is not a full solution.
In an effort to mitigate this situation, I have
nnoremap q: <Nop>
This works, however, now the q
has an input delay (due to being bound now) and therefore causes the action of exiting from recording a macro/recording to be latent.
How can I remove my ability to enter the command line window without introducing such consequences?
:set timeoutlen=100
...see if that helps$VIMRUNTIME/defaults.vim
(and what I use on a daily basis).:q
which can be messed up, learn to typeZZ
and friendsZX,ZQ
? (I think I got those right)<c-w>c
/:close
instead of using:q
. I find the commandline-window to be super useful and use it many times though out the day. I think it is up there with<c-x><c-e>
in bash. Maybe it would be better to just mapq
and usegetchar()
.