On Tue, Mar 22, 2011 at 09:37:17AM -0400, Charles Campbell wrote:
> Yue Wu wrote:
> >
> > As the title, I notice netrw will create a .netrwhist at my vimfile
> > when on windows(don't know if it do on unix too), how to prevent it
> > from the file creation for security issue sometime.
> >
> There's no built-in way to prevent .netrwhist generation at the current
> time.
>
> However, you could delete the file immediately after it was generated, I
> suppose: (untested)
>
> au VimLeave * if filereadable("[path here]/.netrwhist")|call
> delete("[path here]/.netrwhist")|endif
>
Thanks, it works.
--
Regards,
Yue Wu
Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php