2012-05-10 25 views

Trả lời

46

Vimscript cho phép tiếp tục dòng trước bằng cách bắt đầu tiếp theo bằng dấu gạch chéo ngược, nhưng không thuận tiện như chuỗi heredoc như bạn sẽ tìm thấy trong Ruby, PHP hoặc 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' 

Hãy xem relevant documentation on line-continuation.

Các vấn đề liên quan