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.
精彩评论