z CR doesn't work in a function

2011-08-10 Thread sinbad
hi, the following statement is not working inside a vim function. any clue ? silent normal! zCR thanks -- 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

Re: z CR doesn't work in a function

2011-08-10 Thread thinca
Try the following. silent execute normal! z\CR 2011/08/10 21:09 sinbad sinbad.sin...@gmail.com: hi, the following statement is not working inside a vim function. any clue ? silent normal! zCR thanks -- You received this message from the vim_use maillist. Do not top-post! Type your

Re: z CR doesn't work in a function

2011-08-10 Thread Ben Fritz
On Aug 10, 7:09 am, sinbad sinbad.sin...@gmail.com wrote: hi, the following statement is not working inside a vim function. any clue ? silent normal! zCR Because you're feeding in 4 characters, '', 'C', 'R', '' instead of the intent, which is doubtless to feed in an actual CR character.