LoginSignup
6
5

More than 5 years have passed since last update.

Exコマンドの出力をバッファに出力する方法

Last updated at Posted at 2015-01-24

:から始まるあれです。:versionなど。

これの出力をバッファに出すにはどうしたらいいのか。

どうやらreadなどを使って簡単にやる方法は無いようです。

調べてみたら、:redirというものが。

vim
:redi @a
:version
:redi END
"ap

@aはレジスタ名なので、もちろん@"とすれば無名レジスタにも出力できます。

詳細は:h :redi参照。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5