2012-05-10 14 views

Antwort

46

Vimscript erlaubt die Fortsetzung der vorherigen Zeile, indem die nächste mit einem umgekehrten Schrägstrich beginnt, aber das ist nicht ganz so praktisch wie eine Heredoc-Zeichenfolge wie in Ruby, PHP oder Bash.

let g:myLongString='A string 
\ that has a lot of lines 
\ each beginning with a 
\ backslash to continue the previous one 
     \ and whitespace before the backslash 
     \ is ignored' 

Werfen Sie einen Blick auf die relevant documentation on line-continuation.

Verwandte Themen