aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/alpha.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/alpha.vim')
-rw-r--r--plugin/alpha.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugin/alpha.vim b/plugin/alpha.vim
new file mode 100644
index 0000000..9a8969c
--- /dev/null
+++ b/plugin/alpha.vim
@@ -0,0 +1,13 @@
+if !exists('*alpha#save_and_exec')
+ function! alpha#save_and_exec() abort
+ if &filetype == 'vim'
+ :silent! write
+ :source %
+ elseif &filetype == 'lua'
+ :silent! write
+ :luafi %
+ endif
+
+ return
+ endfunction
+endif