Replace XDG_CACHE_DIR with XDG_CACHE_HOME

per http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
This commit is contained in:
bluehavana
2014-11-17 16:48:12 -08:00
parent 23327c4379
commit 03e044871d
2 changed files with 3 additions and 3 deletions

View File

@@ -78,8 +78,8 @@ function! neosnippet#variables#data_dir() "{{{
let g:neosnippet#data_directory =
\ substitute(fnamemodify(get(
\ g:, 'neosnippet#data_directory',
\ ($XDG_CACHE_DIR != '' ?
\ $XDG_CACHE_DIR . '/neosnippet' : expand('~/.cache/neosnippet'))),
\ ($XDG_CACHE_HOME != '' ?
\ $XDG_CACHE_HOME . '/neosnippet' : expand('~/.cache/neosnippet'))),
\ ':p'), '\\', '/', 'g')
if !isdirectory(g:neosnippet#data_directory)
call mkdir(g:neosnippet#data_directory, 'p')