vim 变量声明和中断
通常我使用“\n”在输入对话框窗口中添加额外信息。
pe
let myvar = "How many characters do you want to add? \n (max. 10)"
let f = inputdialog(myvar)
休息效果很好。
但是当我在文本中添加变量时,中断不再起作用:
let myvar = 'How many ' .a:type. ' do you want to add? \n (max. 10)'
let f = inputdialog(myvar)
变量是 a:type 插入得很好,但中断不起作用。为什么?
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 to add? \n (max. 10)'
let f = inputdialog(myvar)
The variable is a:type is inserted well but the break doesn't work. Why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你们两个例子都不起作用:你应该使用双笔画而不是单笔画。
Neither of you examples work: you should have been using double strokes instead of single.