startify.vim 954 B

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