No edit summary |
|||
Line 1: | Line 1: | ||
Hi, I encountered the error message |
Hi, I encountered the error message |
||
− | + | =="Global template file '.s:C_GlobalTemplateFile.' not readable."== |
|
when starting vim with the cvim plugin. |
when starting vim with the cvim plugin. |
Revision as of 12:10, 24 June 2011
Hi, I encountered the error message
"Global template file '.s:C_GlobalTemplateFile.' not readable."
when starting vim with the cvim plugin.
The problem is that the cvim.vim script checks whether the filename it was started with and the home directory match. My home directory happens to be a link which is not fully expanded by expand(). I suggest to replace the occurrences of
expand("<sfile>")
with resolve(expand("<sfile>"))
and likewise for expand("$HOME")
line 88:
if match( expand("<sfile>"), expand("$HOME") ) == 0
would become
if match( resolve(expand("<sfile>")), resolve(expand("$HOME"))) == 0