开发者

vim variable declaration and breaks

Normally I use "\n" to add extra information in an inputdialog window.

p.e.

let myvar = "How many characters do you want to add? \n (max. 10)"
let f = inputdialog(myvar)

The break works fine.

but when I add a variable in the text, the break doesn't work anymore:

let myvar = 'How many ' .a:type. ' do you want t开发者_StackOverflow社区o add? \n (max. 10)'
let f = inputdialog(myvar)

The variable is a:type is inserted well but the break doesn't work. Why?


Neither of you examples work: you should have been using double strokes instead of single.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜