Skip to content

Instantly share code, notes, and snippets.

@fmoralesc
Last active February 22, 2017 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmoralesc/637e04fae45f079c6adc to your computer and use it in GitHub Desktop.
Save fmoralesc/637e04fae45f079c6adc to your computer and use it in GitHub Desktop.
let g:entering_tab = 0
function! NewStartifyTab(afile)
if a:afile == '' && &filetype !~ 'help' || &modifiable
if g:entering_tab == 1
call startify#insane_in_the_membrane()
let g:entering_tab = 0
endif
endif
endfunction
au! TabEnter * let g:entering_tab = 1
au! BufEnter * call NewStartifyTab(expand('<afile>'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment