aboutsummaryrefslogtreecommitdiff
path: root/plugin/command.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-08-13 01:17:57 +0800
committerjdhao <jdhao@hotmail.com>2021-08-13 01:17:57 +0800
commit70d7f3aea5d8de71fc34a84b8b5b20c8bb01d077 (patch)
treececcd7a40bfbd6e59032715f5fa39ae3e84c7aa5 /plugin/command.vim
parent37e9487076d3fec7c26850ed50fbe33caae71665 (diff)
Add Redir command to capture command output easily
Diffstat (limited to 'plugin/command.vim')
-rw-r--r--plugin/command.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/command.vim b/plugin/command.vim
new file mode 100644
index 0000000..e39859b
--- /dev/null
+++ b/plugin/command.vim
@@ -0,0 +1,2 @@
+" Capture output from a command to register @m, to paste, press "mp
+command! -nargs=1 -complete=command Redir call utils#CaptureCommandOutput(<q-args>)