Dimitar DIMITROV wrote:
> Now try :ec getpos('.') -> [0, 4, 17, 0]
> Move away and :call setpos('.',[0,4,17,0])
> If you use <up> <down> k or j you will not move just
> above/below the char but in some weird location

Say the cursor is in column 20, then setpos() is used to jump
to [d], then k is pressed.

The result is that the cursor goes to column 20. That is
possibly not very helpful, but it's compatible with ":help k":

    The first two commands [k and j] put the cursor in the
    same column (if possible) as it was after the
    last command that changed the column

In other words, calling setpos() is not regarded as a command.

John


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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui