Skip to content

Commit

Permalink
make 'hidden' persistence file platform specific
Browse files Browse the repository at this point in the history
  • Loading branch information
embear committed Feb 5, 2014
1 parent 67df94a commit feecb94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/localvimrc.txt
Expand Up @@ -146,7 +146,8 @@ Default: 0
Filename used for storing persistent decisions made when asked before sourcing
local vimrc files.

Default: "$HOME/localvimrc_persistent"
Default: "$HOME/.localvimrc_persistent" on Unix
"$HOME/_localvimrc_persistent" on MS-Windows

------------------------------------------------------------------------------
*g:localvimrc_whitelist*
Expand Down
6 changes: 5 additions & 1 deletion plugin/localvimrc.vim
Expand Up @@ -97,7 +97,11 @@ endif
" define default "localvimrc_persistence_file" {{{2
" file where to store persistence information
if (!exists("g:localvimrc_persistence_file"))
let s:localvimrc_persistence_file = expand('$HOME') . "/.localvimrc_persistent"
if has(win16) || has(win32) || has(win64) || has(win95)
let s:localvimrc_persistence_file = expand('$HOME') . "/_localvimrc_persistent"
else
let s:localvimrc_persistence_file = expand('$HOME') . "/.localvimrc_persistent"
endif
else
let s:localvimrc_persistence_file = g:localvimrc_persistence_file
endif
Expand Down

0 comments on commit feecb94

Please sign in to comment.