Bram,
setting the marks from the last visual selection is not allowed, 
although you can still :delmark them. From a scripting perspective it 
would be nice, to have those marks also settable, so here is patch, that 
allows this:


diff --git a/src/mark.c b/src/mark.c
--- a/src/mark.c
+++ b/src/mark.c
@@ -97,6 +97,18 @@
        curbuf->b_op_end = *pos;
        return OK;
     }
+#ifdef FEAT_VISUAL
+    if (c == '<')
+    {
+       curbuf->b_visual.vi_start = *pos;
+       return OK;
+    }
+    if (c == '<')
+    {
+       curbuf->b_visual.vi_end = *pos;
+       return OK;
+    }
+#endif
 
 #ifndef EBCDIC
     if (c > 'z')           /* some islower() and isupper() cannot handle


regards,
Christian
-- 
Der Deutsche soll alle Sprachen lernen, damit ihm zu Hause kein 
Fremder unbequem, er aber in der Fremde überall zu Hause sei.
                -- Goethe, Maximen und Reflektionen, Nr. 741

-- 
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

Raspunde prin e-mail lui