comparison src/ex_docmd.c @ 22862:6d50182e7e24 v8.2.1978

patch 8.2.1978: making a mapping work in all modes is complicated Commit: https://github.com/vim/vim/commit/957cf67d50516ba98716f59c9e1cb6412ec1535d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 12 14:21:06 2020 +0100 patch 8.2.1978: making a mapping work in all modes is complicated Problem: Making a mapping work in all modes is complicated. Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7282, closes 4784, based on patch by Bjorn Linse)
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 Nov 2020 14:30:04 +0100
parents 7c1e2e3f2d8d
children 707b90980de5
comparison
equal deleted inserted replaced
22861:459c4d8b3a34 22862:6d50182e7e24
8146 { 8146 {
8147 if (eap->cmdidx == CMD_startinsert) 8147 if (eap->cmdidx == CMD_startinsert)
8148 restart_edit = 'i'; 8148 restart_edit = 'i';
8149 curwin->w_curswant = 0; // avoid MAXCOL 8149 curwin->w_curswant = 0; // avoid MAXCOL
8150 } 8150 }
8151
8152 if (VIsual_active)
8153 showmode();
8151 } 8154 }
8152 8155
8153 /* 8156 /*
8154 * ":stopinsert" 8157 * ":stopinsert"
8155 */ 8158 */