Skip to content
Browse files

Version 1.1a

Minor tweaks to help windows find the level
directory a little more smoothly. I hope this works.
  • Loading branch information...
1 parent 80a1c40 commit af70fad6cd06fb1455342ed909a2ce3261072476 Mike Sharpe committed with Feb 15, 2002
Showing with 8 additions and 1 deletion.
  1. +8 −1 plugin/sokoban.vim
View
9 plugin/sokoban.vim
@@ -54,8 +54,15 @@ endif
let loaded_VimSokoban = 1
" Allow the user to specify the location of the sokoban levels
+" TODO - use <sfile> as suggested by Bindu Wavell and Gergely Kontra
if (!exists("g:SokobanLevelDirectory"))
- let g:SokobanLevelDirectory = $HOME . "/VimSokoban/"
+ if (exists("$VIMSOKOBANDIR"))
+ let g:SokobanLevelDirectory = $VIMSOKOBANDIR
+ elseif (exists("$HOME"))
+ let g:SokobanLevelDirectory = $HOME . "/VimSokoban/"
+ elseif (has("win32") || has("win95") || has("dos32") || has("gui_win32"))
+ let g:SokobanLevelDirectory = "c:\\VimSokoban\\"
+ endif
endif
" Function : ClearBuff (PRIVATE)

0 comments on commit af70fad

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