Quit VIM is slow, usually 2 seconds, it shows

vim

On quit, vim shows that:

".netrwhist" [Not edited] –No lines in buffer–

This process usually takes 2s. How to turn this thing off?

— Update —

I noticed that netrw is installed as system-wide. Use the code below to disable all of those plugins.

se nolpl
let x = &rtp
se rtp-=$VIMRUNTIME
ru! plugin/**/*.vim
let &rtp = x
unl x

Best Answer

It looks to be caused by the vim plugin netrw.vim.

You could remove the file and, if you do need that functionality, reinstall the plugin.

Related Question