不知道怎么处理前面的数字
我说的5只是举个例子而已


怪我没说清除
我说的是任意数字+V
eexpress 写了:V5<down>
你这要求,不通用吧。
代码: 全选
:nnoremap 5V V5j
代码: 全选
:nnoremap 5V V4j
代码: 全选
:h :command-count
fanhe 写了:自定义命令,接受计数参数,看看我自己没用过代码: 全选
:h :command-count
+1Fermat618 写了: 但如果你非得这么干,除了写个自定义函数,再把V给覆盖掉,我没看到其它方法。
所以, V然后 ctrl-c
If Visual mode is not active and the "v", "V" or CTRL-V is preceded with a
count, the size of the previously highlighted area is used for a start. You
can then move the end of the highlighted area and give an operator. The type
of the old area is used (character, line or blockwise).
……
*v_CTRL-C*
代码: 全选
au GuiEnter * normal! V<ctrl-c>