コマンドの出力結果をレジスタに出力する
わたしならコマンドでラップしちゃうかなーと。
command! -nargs=* -complete=command \ OutputRegister \ redir @* \| execute <q-args> \| redir END " command! Hoge echo "test" " OutputRegister Hoge
わたしならコマンドでラップしちゃうかなーと。
command! -nargs=* -complete=command \ OutputRegister \ redir @* \| execute <q-args> \| redir END " command! Hoge echo "test" " OutputRegister Hoge