mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
patch 9.0.1650: MS-Windows: default 'viewdir' may include read-only directory
Problem: MS-Windows: default 'viewdir' may include read-only directory. Solution: Use $HOME instead of $VIM for 'viewdir' default. (closes #12119)
This commit is contained in:
@ -8912,11 +8912,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
displayed when 'verbosefile' is set.
|
||||
|
||||
*'viewdir'* *'vdir'*
|
||||
'viewdir' 'vdir' string (default for Amiga and Win32:
|
||||
"$VIM/vimfiles/view",
|
||||
for Unix: "~/.vim/view",
|
||||
for macOS: "$VIM:vimfiles:view"
|
||||
for VMS: "sys$login:vimfiles/view")
|
||||
'viewdir' 'vdir' string (default for Amiga "$VIM/vimfiles/view",
|
||||
for Win32: "$HOME/vimfiles/view",
|
||||
for Unix: "~/.vim/view",
|
||||
for macOS: "$VIM/vimfiles/view"
|
||||
for VMS: "sys$login:vimfiles/view")
|
||||
global
|
||||
{not available when compiled without the |+mksession|
|
||||
feature}
|
||||
|
@ -97,7 +97,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef DFLT_VDIR
|
||||
# define DFLT_VDIR "$VIM/vimfiles/view" // default for 'viewdir'
|
||||
# define DFLT_VDIR "$HOME/vimfiles/view" // default for 'viewdir'
|
||||
#endif
|
||||
|
||||
#ifndef DFLT_DIR
|
||||
@ -105,7 +105,7 @@
|
||||
#endif
|
||||
|
||||
#define DFLT_ERRORFILE "errors.err"
|
||||
#define DFLT_RUNTIMEPATH "$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/vimfiles/after"
|
||||
#define DFLT_RUNTIMEPATH "$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$HOME/vimfiles/after,$VIM/vimfiles/after"
|
||||
#define CLEAN_RUNTIMEPATH "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after"
|
||||
|
||||
#define CASE_INSENSITIVE_FILENAME // ignore case when comparing file names
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1650,
|
||||
/**/
|
||||
1649,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user