aboutsummaryrefslogtreecommitdiff
path: root/plugin/command.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-08-13 23:27:17 +0800
committerjdhao <jdhao@hotmail.com>2021-08-13 23:27:17 +0800
commitfa203cf3b86f82f6368c117dd1cff45896b633a9 (patch)
tree9ecc60fb28d4ea66fd08947d6d517d53d43efa40 /plugin/command.vim
parentf9feafa5bbbc38ec883b4753e836521aa04c23b7 (diff)
feat: make :edit command supports file glob patterns
Diffstat (limited to 'plugin/command.vim')
-rw-r--r--plugin/command.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/command.vim b/plugin/command.vim
index e39859b..83cc750 100644
--- a/plugin/command.vim
+++ b/plugin/command.vim
@@ -1,2 +1,5 @@
" Capture output from a command to register @m, to paste, press "mp
command! -nargs=1 -complete=command Redir call utils#CaptureCommandOutput(<q-args>)
+
+command! -bar -bang -nargs=+ -complete=file Edit call utils#MultiEdit([<f-args>])
+call utils#Cabbrev('edit', 'Edit')