Questions tagged «vimscript»

1
Vimscript:如何调用函数但在执行之前等待用户输入?
在键映射的右侧,您可以执行类似于:call FileTypeToggle("")<Left><Left>在命令行启动函数调用,将光标移动到引号之间,并等待用户填写参数并<CR>手动点击的操作。 你如何在一个函数中做同样的事情?我已经尝试了一堆排列execute,call,normal,和似乎没有任何工作。我要么得到有关尾随字符(<Left><Left>)的错误,要么执行该函数而不等待用户输入。
1 vimscript 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.