Sunday, August 15, 2010

Re: how to read let expression with starting \ and ending .

Jeri Raye <jeri.raye@gmail.com> wrote:

> Hi,
>
> I'm reading some vim script.
> I was wondering about the following
> It says
> let g:expression =
> \ <all kind of code, ending with a dot> .
> \ <more code ending with a dot> .
> \ <even more code NOT ending with a dot>
>
> Question 1: Is this \ a 'line-continuation' character? In other words should
> it be read as one line?

Yes. See :help line-continuation

> Question 2: And what is the function of the dot?

String concatenation. See: :help expr-.

See also :help eval.txt for questions about Vim script.

Regards
-- Dominique

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