Permalink
Browse files

fix a bug about path.

do not create file in current path, create it user-runtime-path
instead.

Signed-off-by: sunus <sunuslee@gmail.com>
  • Loading branch information...
1 parent 9110f5e commit c1e063dd2d552cd24acc5053c8eb1c9cd9a1613e @sunuslee committed Dec 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 randomColorPicker.vim
@@ -30,13 +30,14 @@ function! GetRAND()
endfunction
let g:os=GetOS()
-let plugin_path = expand('%:p:h')
if g:os == 'linux'
+ let g:plugin_path=$HOME.'/.vim/plugin'
let g:slash='/'
let g:love_path=g:plugin_path.'/.love'
let g:hate_path=g:plugin_path.'/.hate'
elseif g:os == 'win'
+ let g:plugin_path=$HOME.'/vimfiles/plugin'
let g:slash='\'
let g:love_path=g:plugin_path.'\love.txt'
let g:hate_path=g:plugin_path.'\hate.txt'

0 comments on commit c1e063d

Please sign in to comment.