How to save a Vim macro that contains “Escape” key presses? November 28, 2023 by Tarik Try entering the escape with <Ctrl-v><Esc> in insert mode. See :help i_CTRL-V in vim.