Monday, March 5, 2012

Re: how to use z

Hi

sinbad wrote:
>
> i'm trying to use z <cr> in vim script.
> i am using as follows,
>
> execute "normal z<CR>"
>
> but, it doesnt seem to be working,
> what is missing ?

a backslash. If you want to use the <>-notation inside of a :normal
command you must prefix the less-than sign with a backslash, i.e.,

:execute "normal z\<CR>"

See the example at the end of ":help :normal".

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

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

No comments:

Post a Comment