I often Ctrl-Z to the command line. Is there a way to do that in response to hitting Ctrl-Z in insert mode?
The iabbrev
command does not seem to work.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityUsing :h CTRL-Z
as inspiration, the following solutions can be cooked:
:inoremap <c-z> <esc>:stop<cr>
or (shorter & literally closer):
:inoremap <c-z> <esc><c-z>
inoremap <c-z> <esc>:stop<cr>
? Orinoremap <c-z> <esc><c-z>
See:h CTRL-Z