Merge pull request #259 from bluehavana/master

Replace XDG_CACHE_DIR with XDG_CACHE_HOME
This commit is contained in:
Shougo 2014-11-18 18:53:29 +09:00
commit 811176b29b
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 = let g:neosnippet#data_directory =
\ substitute(fnamemodify(get( \ substitute(fnamemodify(get(
\ g:, 'neosnippet#data_directory', \ g:, 'neosnippet#data_directory',
\ ($XDG_CACHE_DIR != '' ? \ ($XDG_CACHE_HOME != '' ?
\ $XDG_CACHE_DIR . '/neosnippet' : expand('~/.cache/neosnippet'))), \ $XDG_CACHE_HOME . '/neosnippet' : expand('~/.cache/neosnippet'))),
\ ':p'), '\\', '/', 'g') \ ':p'), '\\', '/', 'g')
if !isdirectory(g:neosnippet#data_directory) if !isdirectory(g:neosnippet#data_directory)
call mkdir(g:neosnippet#data_directory, 'p') call mkdir(g:neosnippet#data_directory, 'p')

View File

@ -234,7 +234,7 @@ g:neosnippet#data_directory *g:neosnippet#data_directory*
Specifies directory for neosnippet cache. If the directory Specifies directory for neosnippet cache. If the directory
doesn't exist the directory will be automatically generated. doesn't exist the directory will be automatically generated.
Default value is "$XDG_CACHE_DIR/neosnippet" or Default value is "$XDG_CACHE_HOME/neosnippet" or
expand("~/.cache/neosnippet"); the absolute path of it. expand("~/.cache/neosnippet"); the absolute path of it.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------