I installed spf13-vim on OS X and when I started do edit a file I get the following errors:

Error detected while processing function neosnippet#init#_initialize

Cannot create directory: /Users/.../.cache/neosnippet

I suspect that the error is raised because neosnippet plugin does not have permissions to write in the .cache directory.

Anybody can help me to fix that?

  • 2
    Does the user you're logged in as have permissions to write in the .cache directory? Does that directory exist? Have you tried creating it?
    – Rich
    Commented Apr 14, 2015 at 13:39

1 Answer 1


If It isn't able to read/write to that directory, there are configuration settings to change the cache directory. According to the neosnippet documentation, you can choose the cache directory using the g:neosnippet#data_directory variable. Like so:

let g:neosnippet#data_directory = "/path/to/cache/"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.