startify.vim 923 B

123456789101112131415161718192021222324
  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.6
  5. if exists('g:loaded_startify') || &cp
  6. finish
  7. endif
  8. let g:loaded_startify = 1
  9. augroup startify
  10. autocmd!
  11. autocmd VimEnter *
  12. \ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gm]\=vim\%[\.exe]$') |
  13. \ call startify#insane_in_the_membrane() |
  14. \ endif
  15. augroup END
  16. command! -nargs=? -bar -complete=customlist,startify#session_list SSave call startify#session_save(<f-args>)
  17. command! -nargs=? -bar -complete=customlist,startify#session_list SLoad call startify#session_load(<f-args>)
  18. command! -nargs=? -bar -complete=customlist,startify#session_list SDelete call startify#session_delete(<f-args>)
  19. command! -nargs=0 -bar Startify enew | call startify#insane_in_the_membrane()
  20. " vim: et sw=2 sts=2