]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/exted.vim
exted plugin is convenient anyway
[dotfiles.git] / vim / .vim / plugin / exted.vim
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>)