Mercurial > vim
comparison src/normal.c @ 167:c93c9cad9618
updated for version 7.0051
author | vimboss |
---|---|
date | Tue, 22 Feb 2005 08:39:57 +0000 |
parents | 8b0ee9d57d7f |
children | 8c60f65311fa |
comparison
equal
deleted
inserted
replaced
166:3a28ed993bbe | 167:c93c9cad9618 |
---|---|
230 {Ctrl_L, nv_clear, 0, 0}, | 230 {Ctrl_L, nv_clear, 0, 0}, |
231 {CAR, nv_down, 0, TRUE}, | 231 {CAR, nv_down, 0, TRUE}, |
232 {Ctrl_N, nv_down, NV_STS, FALSE}, | 232 {Ctrl_N, nv_down, NV_STS, FALSE}, |
233 {Ctrl_O, nv_ctrlo, 0, 0}, | 233 {Ctrl_O, nv_ctrlo, 0, 0}, |
234 {Ctrl_P, nv_up, NV_STS, FALSE}, | 234 {Ctrl_P, nv_up, NV_STS, FALSE}, |
235 #ifdef FEAT_VISUAL | |
236 {Ctrl_Q, nv_visual, 0, FALSE}, | |
237 #else | |
235 {Ctrl_Q, nv_ignore, 0, 0}, | 238 {Ctrl_Q, nv_ignore, 0, 0}, |
239 #endif | |
236 {Ctrl_R, nv_redo, 0, 0}, | 240 {Ctrl_R, nv_redo, 0, 0}, |
237 {Ctrl_S, nv_ignore, 0, 0}, | 241 {Ctrl_S, nv_ignore, 0, 0}, |
238 {Ctrl_T, nv_tagpop, NV_NCW, 0}, | 242 {Ctrl_T, nv_tagpop, NV_NCW, 0}, |
239 {Ctrl_U, nv_halfpage, 0, 0}, | 243 {Ctrl_U, nv_halfpage, 0, 0}, |
240 #ifdef FEAT_VISUAL | 244 #ifdef FEAT_VISUAL |
6850 #ifdef FEAT_VISUAL | 6854 #ifdef FEAT_VISUAL |
6851 /* | 6855 /* |
6852 * Handle "v", "V" and "CTRL-V" commands. | 6856 * Handle "v", "V" and "CTRL-V" commands. |
6853 * Also for "gh", "gH" and "g^H" commands: Always start Select mode, cap->arg | 6857 * Also for "gh", "gH" and "g^H" commands: Always start Select mode, cap->arg |
6854 * is TRUE. | 6858 * is TRUE. |
6859 * Handle CTRL-Q just like CTRL-V. | |
6855 */ | 6860 */ |
6856 static void | 6861 static void |
6857 nv_visual(cap) | 6862 nv_visual(cap) |
6858 cmdarg_T *cap; | 6863 cmdarg_T *cap; |
6859 { | 6864 { |
6865 if (cap->cmdchar == Ctrl_Q) | |
6866 cap->cmdchar = Ctrl_V; | |
6867 | |
6860 /* 'v', 'V' and CTRL-V can be used while an operator is pending to make it | 6868 /* 'v', 'V' and CTRL-V can be used while an operator is pending to make it |
6861 * characterwise, linewise, or blockwise. */ | 6869 * characterwise, linewise, or blockwise. */ |
6862 if (cap->oap->op_type != OP_NOP) | 6870 if (cap->oap->op_type != OP_NOP) |
6863 { | 6871 { |
6864 cap->oap->motion_force = cap->cmdchar; | 6872 cap->oap->motion_force = cap->cmdchar; |