Fast changing between file extensions
authorSergey Matveev <stargrave@stargrave.org>
Wed, 5 Aug 2020 09:28:35 +0000 (12:28 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 5 Aug 2020 09:28:35 +0000 (12:28 +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..013402a
--- /dev/null
@@ -0,0 +1,4 @@
+function! s:exted(ext)
+    execute "edit %<." . a:ext
+endfunction
+command! -nargs=1 Ee silent call s:exted(<f-args>)