2017/12/19

Vim に :terminal が入ってしばらく経ちます。そろそろ :terminal を使ったハック欲も溜まってきているかと思います。

:terminal から起動したシェル(Windowsだとコマンドプロンプト)では、VIM_SERVERNAME という環境変数が設定されています。これは --remote-send--remote-expr 等で別プロセスの Vim に命令を送る際のサーバ名で --servername により指定可能です。

:terminal の中から以下の様に実行すると :terminal を起動した Vim に命令を送って計算結果が返ってきます。
terminal
Posted at 12:11 | WriteBacks () | Edit
Edit this entry...

wikieditish message: Ready to edit this entry.






















A quick preview will be rendered here when you click "Preview" button.