2012-03-04から1日間の記事一覧

Vim のコマンドで Vim script の式を使う

vim

Vim のコマンドに Vim script の式を渡す場合、いつも execute "edit ".tempname() のように :execute コマンドを使用していたんですが、『:{コマンド} `={式}`』 で式を渡すことが出来たんですね。 上記の Vim script の場合はこんな感じになります。 edit …