Split long lines in a vim script

457 views
Skip to first unread message

Pablo Giménez

unread,
Dec 13, 2010, 1:30:24 PM12/13/10
to vim_use
Hi all.
I am writing a vim script and one of my if statements has several
conditions, it makes the line for that statment really long, I want to
split it in several lines using something like "\" at the end, as you
can do in o ther languages.
But it doesn't work, any way to split a line in vim scritping ?
Thanks

--
Un saludo
Best Regards
Pablo Giménez

Tim Chase

unread,
Dec 13, 2010, 1:52:41 PM12/13/10
to vim...@googlegroups.com, Pablo Giménez
On 12/13/2010 12:30 PM, Pablo Gim�nez wrote:
> I am writing a vim script and one of my if statements has several
> conditions, it makes the line for that statment really long, I want to
> split it in several lines using something like "\" at the end, as you
> can do in o ther languages.
> But it doesn't work, any way to split a line in vim scritping ?

:help line-continuation

You want the "\" at the *beginning* of the continued line. I
don't like it; I don't use it; I can't justify it; but it is what
it is.

-tim

Pablo Giménez

unread,
Dec 14, 2010, 11:22:24 AM12/14/10
to vim...@googlegroups.com
El día 13 de diciembre de 2010 18:52, Tim Chase
<v...@tim.thechases.com> escribió:
Thanks Tim!
>
> -tim
Reply all
Reply to author
Forward
0 new messages