本文介绍了vim-如何删除netrw?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试 https://github.com/skwp/dotfiles ),但不幸的是它确实安装了很多我不想要的东西.

I was testing https://github.com/skwp/dotfiles) and unfortunately it did install a lot of things I do not want.

例如,现在,当我打开vim时(带有空的.vimrc)

For example, right now (with empty .vimrc) when I open vim I get

" ============================================================================
" Netrw Directory Listing                                        (netrw v149)
"   /Users/user/.vim/bundle
"   Sorted by      name
"   Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
"   Quick Help: <F1>:help  -:go up dir  D:delete  R:rename  s:sort-by  x:exec
" ============================================================================

东西.我正处于使用VIM的旅程的开始,所以我不知道有什么新鲜事物,现在我不想使用它.

thing. I am in the beginning of my journey with VIM so I don't know what is new and right now I don't want to use it.

我在OSX Mavericks上安装了自制软件.不过,我找不到这是从哪里来的以及如何删除它.

I am on OSX Mavericks with home-brew installed. Still, I cannot find where is this coming from and how to remove it.

推荐答案

查看$VIMRUNTIME/plugin/netrwPlugin.vim的前几行:

" Load Once: {{{1
if &cp || exists("g:loaded_netrwPlugin")
 finish
endif

如果要禁用它,只需添加

If you want to disable it, just add

let loaded_netrwPlugin = 1

到您的vimrc文件.

to your vimrc file.

这篇关于vim-如何删除netrw?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 23:06