]> Sergey Matveev's repositories - dotfiles.git/commitdiff
exted plugin is convenient anyway
authorSergey Matveev <stargrave@stargrave.org>
Sat, 25 Jun 2022 19:13:16 +0000 (22:13 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 25 Jun 2022 19:13:16 +0000 (22:13 +0300)
vim/.vim/plugin/exted.vim [new file with mode: 0644]

diff --git a/vim/.vim/plugin/exted.vim b/vim/.vim/plugin/exted.vim
new file mode 100644 (file)
index 0000000..e24524e
--- /dev/null
@@ -0,0 +1,7 @@
+if exists("*<SID>exted") | finish | endif
+
+function! s:exted(ext)
+    execute "edit %<." . a:ext
+endfunction
+
+command! -nargs=1 Ee silent call s:exted(<f-args>)