Mayur Pant wrote:
Hi,

I may be shunned from the vim console using community for asking this, but,

    is there anyway to simulate the behaviour of gvim from the console, ie.

    left click to position the cursor to a point within the text,
    right click to select blocks of it,
    middle click to paste

    (it already does the second two).

I would find this a lot faster in most circumstances (sometimes I don't know how many n's back a character is off the top of my head).


            Thanks.


                Mayur


Left-clicking should already position the cursor, but you can do

        :verbose set mouse? mousemodel?
followed by
        :set mouse=ar mousemodel=extend

which makes the mouse act as folows:

left-click:    set cursor
left-drag:     start selection
shift-left:    search word
right-click:   extend selection
right-drag:    extend selection
middle-click:  paste

see
        :help 'mouse'
        :help 'mousemodel'

In addition,
- don't source mswin.vim
- either don't use ":behave", or use ":behave xterm" which (among others) sets 'mousemodel' to "extend".


Best regards,
Tony.

Reply via email to