forked from aniani/vim
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,10 +8912,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
displayed when 'verbosefile' is set.
|
displayed when 'verbosefile' is set.
|
||||||
|
|
||||||
*'viewdir'* *'vdir'*
|
*'viewdir'* *'vdir'*
|
||||||
'viewdir' 'vdir' string (default for Amiga and Win32:
|
'viewdir' 'vdir' string (default for Amiga "$VIM/vimfiles/view",
|
||||||
"$VIM/vimfiles/view",
|
for Win32: "$HOME/vimfiles/view",
|
||||||
for Unix: "~/.vim/view",
|
for Unix: "~/.vim/view",
|
||||||
for macOS: "$VIM:vimfiles:view"
|
for macOS: "$VIM/vimfiles/view"
|
||||||
for VMS: "sys$login:vimfiles/view")
|
for VMS: "sys$login:vimfiles/view")
|
||||||
global
|
global
|
||||||
{not available when compiled without the |+mksession|
|
{not available when compiled without the |+mksession|
|
||||||
|
@@ -97,7 +97,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DFLT_VDIR
|
#ifndef DFLT_VDIR
|
||||||
# define DFLT_VDIR "$VIM/vimfiles/view" // default for 'viewdir'
|
# define DFLT_VDIR "$HOME/vimfiles/view" // default for 'viewdir'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DFLT_DIR
|
#ifndef DFLT_DIR
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DFLT_ERRORFILE "errors.err"
|
#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 CLEAN_RUNTIMEPATH "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after"
|
||||||
|
|
||||||
#define CASE_INSENSITIVE_FILENAME // ignore case when comparing file names
|
#define CASE_INSENSITIVE_FILENAME // ignore case when comparing file names
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1650,
|
||||||
/**/
|
/**/
|
||||||
1649,
|
1649,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user