Skip to content

Commit

Permalink
[Core] Fortune_vimtips Add new option auto_display.
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbestigrou committed May 11, 2012
1 parent 48cfe68 commit 10034d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/fortune_vimtips.vim
Expand Up @@ -9,14 +9,18 @@ if exists("g:loaded_fortune_vimtips") || &cp
endif
let g:loaded_fortune_vimtips = 1

if !exists('g:fortune_vimtips_auto_display')
let g:fortune_vimtips_auto_display = 1
endif

let s:running_windows = has("win16") || has("win32") || has("win64")

if s:running_windows
echoerr 'The fortune-vimtips is not supported for windows system'
finish
endif

if &diff == 0
if &diff == 0 && g:fortune_vimtips_auto_display
au VIMEnter * call fortune_vimtips#viewtips()
endif

Expand Down

0 comments on commit 10034d2

Please sign in to comment.