我經常使用的使用inputdialog使用執行命令:組合選項中使用inputdialog
let n = confirm({msg} [, {choices} [, {default} [, {type}]]])
體育搜索號碼
if n == 1 - > p.e.用'。'來搜索所有數字,
if n == 2 - > p.e.搜索所有指數
if n == 3 - > p.e.用3位數字搜索所有數字
etc
但是用這種方法我只能選擇一個參數。
在Vim中,您可以在inputdialog中一起選擇多個參數嗎?
謝謝birei,當我在命令行中插入第一個字符時,發生了一些奇怪的事情......光標向右移動了20個空格。我找不到它是什麼。你有好主意嗎? (順便說一下,我使用menu.vim中的函數) – Reman
在幫助文件中找到它。我不得不在輸入行周圍放入':calls inputsave()'和':call inputrestore()'。 :) – Reman
我做了一個檢查,看看輸入是否只有數字。如果沒有,我會返回一個錯誤輸出。你知道如何形象化嗎?使用'my_grouped_opts'項目的長列表不能看到錯誤輸出。 – Reman