startify.vim 1.1 KB

123456789101112131415161718192021222324252627
  1. " Plugin: https://github.com/mhinz/vim-startify
  2. " Description: Start screen displaying recently used stuff.
  3. " Maintainer: Marco Hinz <http://github.com/mhinz>
  4. " Version: 1.5
  5. if exists('g:loaded_startify') || &cp
  6. finish
  7. endif
  8. let g:loaded_startify = 1
  9. let g:startify_session_dir = resolve(expand(get(g:, 'startify_session_dir',
  10. \ has('win32') ? '$HOME\vimfiles\session' : '~/.vim/session')))
  11. augroup startify
  12. autocmd!
  13. autocmd VimEnter *
  14. \ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gm]\=vim\%[\.exe]$') |
  15. \ call startify#insane_in_the_membrane() |
  16. \ endif
  17. augroup END
  18. command! -nargs=? -bar -complete=customlist,startify#get_session_names SSave call startify#save_session(<f-args>)
  19. command! -nargs=? -bar -complete=customlist,startify#get_session_names SLoad call startify#load_session(<f-args>)
  20. command! -nargs=? -bar -complete=customlist,startify#get_session_names SDelete call startify#delete_session(<f-args>)
  21. command! -nargs=0 -bar Startify enew | call startify#insane_in_the_membrane()
  22. " vim: et sw=2 sts=2