加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Vimscript允许多行字符串吗?

发布时间:2020-12-15 20:02:17 所属栏目:安全 来源:网络整理
导读:Vimscript允许多行字符串吗? python和ruby命令允许格式::python EOF 你能做任何类似的字符串吗? Vimscript允许通过使用反斜杠启动下一行来继续上一行,但是这不像像在Ruby,PHP或Bash中找到的heredoc字符串那么方便。 let g:myLongString='A string tha
Vimscript允许多行字符串吗?

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

Vimscript允许通过使用反斜杠启动下一行来继续上一行,但是这不像像在Ruby,PHP或Bash中找到的heredoc字符串那么方便。
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'

看看relevant documentation on line-continuation。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读