gu-fan / colorv.vim

edit color easy
http://www.vim.org/scripts/script.php?script_id=3597
135 stars 12 forks source link

Error message when opening it the terminal - wrong option name #5

Closed wikimatze closed 12 years ago

wikimatze commented 12 years ago

Hi Rykka,

your plugin is great and has same very handy features which I missed in vim. I'm using MacVim in the version 7.3 with +python support and when I fire up mvim in the terminal I'm getting the following error message

[Error] Could NOT read cache file. Stopped.

Only setting:

let g:ColorV_no_python=0

prevented me from getting this error. The defaulr value for this option is

let g:ColorV_no_python=1

which says, I have no python support enabled for my vim-installation. I guess the best is to updated the documentation and/or the naming of the variable to:

let g:ColorV_python=0

Thanks for your help.

Matthias

gu-fan commented 12 years ago

' g:ColorV_no_python' is set as 0 by default. which means using python by default. You may check your vimrc if you set it before.

python part seems should not have side effect with writing/reading color-history-cache. I will check the code. And please tell me if you have '$HOME' variable and have permission to write/read files in '$HOME'

meanwhile. It's not an error that need no using of python ,I will change it to a warning like " No color-history-cache support"

wikimatze commented 12 years ago

Hi Rykka,

I installed your patch, remove the g:ColorV_no_python settings and the Error message is gone. FYI: I have thw $HOME variable and have read permissions.

Matthias

gu-fan commented 12 years ago

that's ok. no more changing is needed