Skip to content
Browse files

[Core] Fortune_vimtips: Add a validation to detect windows

environnement.
  • Loading branch information...
1 parent c7819ea commit f6ae832d46a44b73ab5c3d8a5d30301fc6a6a9fd @hobbestigrou committed May 4, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 plugin/fortune_vimtips.vim
View
7 plugin/fortune_vimtips.vim
@@ -9,6 +9,13 @@ if exists("g:loaded_fortune_vimtips") || &cp
endif
let g:loaded_fortune_vimtips = 1
+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
call fortune_vimtips#viewtips()
endif

0 comments on commit f6ae832

Please sign in to comment.
Something went wrong with that request. Please try again.