]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/exted.vim
Fast changing between file extensions
[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..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>)