回答をテキストで入力させる
作者: 小見 拓
—
最終変更
2012年01月08日 12時12分
回答をテキストで入力させる
- コマンドラインで入力させる
:let inputtext = input("What is your name ?") :echo "Your name is " . inputtext
- ダイアログで入力させる
:let inputtext = inputdialog("What is your name ?") :echo "Your name is " . inputtext
- デフォルト値
:let inputtext = input("What is your name ?", "Tanaka") :echo "Your name is " . inputtext :let inputtext = inputdialog("What is your name ?", "Saito") :echo "Your name is " . inputtext