From 03e044871d2e9eeabbc6e6c59ba10e36ff7e10ca Mon Sep 17 00:00:00 2001 From: bluehavana Date: Mon, 17 Nov 2014 16:48:12 -0800 Subject: [PATCH] Replace XDG_CACHE_DIR with XDG_CACHE_HOME per http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html --- autoload/neosnippet/variables.vim | 4 ++-- doc/neosnippet.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/neosnippet/variables.vim b/autoload/neosnippet/variables.vim index 7080892..8edaf3a 100644 --- a/autoload/neosnippet/variables.vim +++ b/autoload/neosnippet/variables.vim @@ -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') diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 5796ebc..257f4a4 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -234,7 +234,7 @@ g:neosnippet#data_directory *g:neosnippet#data_directory* Specifies directory for neosnippet cache. If the directory 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. ------------------------------------------------------------------------------