2012-05-10 62 views

回答

46

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