Hi Bram, If a user ":imap"s <C-k>, then <C-x><C-k> in insert mode will incorrectly trigger their <C-k> map. The attached patch fixes this by adding Ctrl_K to the recognized followup keys in edit.c:vim_is_ctrl_x_key. That seems to be the only key that was missing from the list.
Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>
diff --git a/src/edit.c b/src/edit.c --- a/src/edit.c +++ b/src/edit.c @@ -2183,7 +2183,7 @@ || c == Ctrl_I || c == Ctrl_D || c == Ctrl_P || c == Ctrl_N || c == Ctrl_T || c == Ctrl_V || c == Ctrl_Q || c == Ctrl_U || c == Ctrl_O - || c == Ctrl_S || c == 's'); + || c == Ctrl_S || c == 's' || c == Ctrl_K); case CTRL_X_SCROLL: return (c == Ctrl_Y || c == Ctrl_E); case CTRL_X_WHOLE_LINE:
signature.asc
Description: Digital signature
