Vimscript允许多行字符串吗?

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

相关文章

解决方案:解决linux下vim乱码的情况:(修改vimrc的内容)全...
Linuxvi/vim所有的UnixLike系统都会内建vi文书编辑器,其他的...
      vim正则匹配:空行:/^$/  /^[\t]*$/注释...
$select-editorSelectaneditor.Tochangelater,run'sele...
上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下...
Linux之文本编译器小结vim的优势所有的UNIX-LIKE习通都会内置...