Bram,
attached patch fixes this issue from the todo list:
,----
| Use a count before "v" and "V" to select that many characters or lines?
| (Kikyous)
`----
regards,
Christian
--
Geschichte schreiben ist eine Art, sich das Vergangene vom Halse
zu schaffen.
-- Goethe, Maximen und Reflektionen, Nr. 251
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff --git a/src/normal.c b/src/normal.c
--- a/src/normal.c
+++ b/src/normal.c
@@ -7660,13 +7660,8 @@
else /* start Visual mode */
{
check_visual_highlight();
- if (cap->count0) /* use previously selected part */
- {
- if (resel_VIsual_mode == NUL) /* there is none */
- {
- beep_flush();
- return;
- }
+ if (cap->count0 && resel_VIsual_mode != NUL) /* use previously selected part */
+ {
VIsual = curwin->w_cursor;
VIsual_active = TRUE;
@@ -7725,6 +7720,14 @@
/* start Select mode when 'selectmode' contains "cmd" */
may_start_select('c');
n_start_visual_mode(cap->cmdchar);
+ if (cap->count0 && --cap->count1)
+ {
+ if (VIsual_mode == 'v')
+ nv_right(cap);
+ else if (VIsual_mode == 'V')
+ nv_down(cap);
+ /* CTRL_V not supported */
+ }
}
}
}