2016-07-23から1日間の記事一覧

Vim script の execute() 時に実行結果を出力する

Vim

さて、Vim script の execute({コマンド}) ですが、引数に渡した『コマンド』の出力結果をキャプチャして返します。 " echo の出力結果を返す。 echo execute("echo 42") この時に当然ですが、"echo 42" のコマンドを実行しただけでは何も出力されません。 "…