aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/alpha.vim
blob: 9a8969c4a0975bea8d617419601d04d16e7ce2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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