29
Erlaubt Vimscript mehrzeilige Strings?Erlaubt Vimscript mehrzeilige Strings?
Die Python und Ruby Befehle erlauben das Format: :python << EOF
Können Sie mit Streichern etwas Ähnliches zu tun?
Erlaubt Vimscript mehrzeilige Strings?Erlaubt Vimscript mehrzeilige Strings?
Die Python und Ruby Befehle erlauben das Format: :python << EOF
Können Sie mit Streichern etwas Ähnliches zu tun?
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.