Lines Matching defs:KEY
180 ex_emsg(sp, (const char *)KEY_NAME(sp, vp->key),
193 /* Copy the key flags into the local structure. */
246 ex_continue: if (strchr(O_STR(sp, O_IMKEY), vp->key))
249 if (strchr(O_STR(sp, O_IMKEY), vp->key))
433 #define KEY(key, ec_flags) { \
440 key = vp->ev.e_c; \
466 /* Previous key if getting motion component. */
470 ARG_CHAR_T key;
477 * Get an event command or a key. Event commands are simple, and
496 * [count] [buffer] [count] key [[motion] | [buffer] [character]]
501 * [count] key [character]
521 key = vp->ev.e_c;
527 if (key == '"') {
533 KEY(vp->buffer, 0);
536 KEY(key, EC_MAPCOMMAND);
544 if (ISDIGIT(key) && key != '0') {
545 if (v_count(sp, vp, key, &vp->count))
551 KEY(key, EC_MAPCOMMAND);
556 if (key == '"') {
566 KEY(vp->buffer, 0);
569 KEY(key, EC_MAPCOMMAND);
572 /* Check for an OOB command key. */
574 if (key > MAXVIKEY) {
575 v_emsg(sp, (const char *)KEY_NAME(sp, key), VIM_NOCOM);
578 kp = &vikeys[vp->key = key];
584 if (vp->key == 'D' && F_ISSET(vp, VC_C1SET)) {
599 if (key == '~' && O_ISSET(sp, O_TILDEOP))
612 if (key != '.') {
613 v_emsg(sp, (const char *)KEY_NAME(sp, key),
669 KEY(vp->buffer, 0);
679 if (vp->key == '[' || vp->key == ']' || vp->key == 'Z') {
692 KEY(key, 0);
694 if (vp->key != key) {
697 else if (ismotion->key == '~' && O_ISSET(sp, O_TILDEOP))
700 s = vikeys[ismotion->key].usage;
706 if (vp->key == 'z') {
707 KEY(vp->character, 0);
712 KEY(vp->character, 0);
720 if (ismotion != NULL && ismotion->key != key && !LF_ISSET(V_MOVE)) {
722 KEY_NAME(sp, key));
729 KEY(vp->character, 0);
732 if (strchr(O_STR(sp, O_IMKEY), vp->key))
734 KEY(vp->character, 0);
735 if (strchr(O_STR(sp, O_IMKEY), vp->key))
820 if (gcret != GC_EVENT && vp->key == motion.key) {
837 (vp->key != 'c' && vp->key != '!')) {
864 * Copy the key flags into the local structure, except for the
902 if (strchr(O_STR(sp, O_IMKEY), motion.key))
905 if (strchr(O_STR(sp, O_IMKEY), motion.key))
919 (vp->key != 'c' && vp->key != '!')) {
1163 switch (vp->key) {
1166 vp->key = 'c';
1170 vp->key = 'd';
1174 vp->key = 'c';
1178 vp->key = 'y';
1184 NULL, &push, 1, CH_NOMAP | CH_QUOTED) ? NULL : &vikeys[vp->key]);
1302 vtrace(sp, "vcmd: "WC, vp->key);