Consider the following script:

    vim -N -u NONE -c 'call setline(".", range(1000))' \
                   -c 'exe "fu! EV()\nechom 0\nnormal! gv30j\nendfu"' \
                   -c 'vnoremap <silent> \e :call EV()<CR>' \
                   -s <(<<< 'V4j\e')

You will see that while function EV was called 5 times (five zeroes in 
:messages), cursor is on the line containing number 33, while it is expected to 
be on line with number 5*30=150.

Attachment: signature.asc
Description: This is a digitally signed message part.

Raspunde prin e-mail lui