Hi Charles,

NetRW provides g:netrw_dirhistmax as a way to prevent creating the
.netrwhist and .netrwbook files.  However, even when this variable is <=
0 NetRW will create the home directory to store these files.  The
attached patch changes this to only create the home directory if the
files are also going to be created.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <james...@debian.org>
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -4626,7 +4626,7 @@
    endif
   endif
   " insure that the home directory exists
-  if !isdirectory(home)
+  if g:netrw_dirhistmax > 0 && !isdirectory(home)
    if exists("g:netrw_mkdir")
     call system(g:netrw_mkdir." ".shellescape(home))
    else

Attachment: signature.asc
Description: Digital signature

Reply via email to