Vimscript允许多行字符串吗?

前端之家收集整理的这篇文章主要介绍了Vimscript允许多行字符串吗?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Vimscript允许多行字符串吗?

python和ruby命令允许格式::python<< EOF 你能做任何类似的字符串吗?

Vimscript允许通过使用反斜杠启动下一行来继续上一行,但是这不像像在Ruby,PHP或Bash中找到的heredoc字符串那么方便。
  1. let g:myLongString='A string
  2. \ that has a lot of lines
  3. \ each beginning with a
  4. \ backslash to continue the prevIoUs one
  5. \ and whitespace before the backslash
  6. \ is ignored'

看看relevant documentation on line-continuation

猜你在找的Bash相关文章