Friday, May 28, 2010

Re: blank lines

On 2010-05-28, epanda wrote:
> Hi,
>
> I am trying to add some blank lines or carriage return to actionscript
> file in order to make reading clear.
>
> call append(line('^'),"\n")
>
> I see this character ^@ at the beginning of my file. I would like only
> to see newline.

Try this instead:

call append(line('^'),"\0")

In some situations, Vim uses \0 in place of \n and vice versa.

Alternatively, you could use

0put!

See

:help :put

HTH,
Gary

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