开发者

vim variable declaration and breaks

开发者 https://www.devze.com 2023-02-19 20:33 出处:网络
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)\"

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

精彩评论

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