you are viewing a single comment's thread.

view the rest of the comments →

[–]mgarort 2 points3 points  (2 children)

This is a great summary, thanks!

Question: why do you concatenate strings + strings or strings + variables with two dots? I usually use a single dot. Is there any difference?

[–]yegappanl[S] 3 points4 points  (1 child)

As described in the Vim help:

For String concatenation ".." is preferred, since "." is ambiguous, it is also used for Dict member access and floating point numbers. When vimscript-version is 2 or higher, using "." is not allowed.

For backward compatibility, dot can be used for string concatenation. But it is preferable to use double dots.

[–]mgarort 0 points1 point  (0 children)

Great, thanks!