* Matteo Cavalleri [2014.03.11 11:16]:
> I'm playing a bit with a vim script, and I'm stuck on this problem:
> 
>         if exists('b:current_line')
>             echom "normal! ".b:current_line."G"
>             exe "normal! ".b:current_line."G"
>             echom 'line is '.line('.')
>         endif
> 
> If I run the script and then do :messages, the output is this one:
> 
> normal! 6G
> line is 1
> 
> and I can't understand why the cursor doesn't move... (I'm not even sure this 
> is the correct way to move, as google isn't helping me much)

Works flawlessly here, vim 7.3.480.

You may be interested in:

:h cursor()

For a list of functions grouped by what they are
used for:

:h function-list

-- 
JR

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to