בתאריך יום חמישי, 30 באוקטובר 2014 21:24:19 UTC+2, מאת glts:
> Hi Ramel,
> 
> On Thursday, October 30, 2014 4:23:32 PM UTC+1, [email protected] wrote:
> > Please have a look:
> > 
> > vim -u NONE
> > -open a file with more than 1 line (or just-  2iaaa<CR><ESC>gg)
> > :let @q = ':norm l^M'         "the ^M is <C-v><Enter>
> > @q
> > 
> > -The result should be moving one character to the right, but instead it 
> > ends in the second line. The behavior is as expected when I record the same 
> > sequence using qq.
> 
> Have you read ':h :let-@'?
> 
>     If the result of {expr1} ends in a <CR> or <NL>, the register will
>     be linewise, otherwise it will be set to characterwise.
> 
> So what you're seeing is an artefact of registers serving two purposes,
> namely storage for replayable keystrokes and storage for arbitrary text
> strings. Try ':registers' to see what's actually inside the register.
> 
> Best,
> 
> 
> -- 
> David

Hi David,

Thank you for explaining it to me.

Ramel

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui