Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim - how to remove netrw?

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

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
" ============================================================================

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.

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

like image 408
acid Avatar asked Feb 10 '14 19:02

acid


People also ask

How do I turn off Netrw buffer?

typing q while in the buffer closes mine.

What is Netrw?

Netrw supports reading and writing files across networks. One may use urls for filenames or one may use netrw's Nread and Nwrite commands. Netrw as provided here supports remote and local directory browsing, and supports editing files across the network using a variety of methods.


1 Answers

Look at the first few lines of $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

to your vimrc file.

like image 66
benjifisher Avatar answered Oct 11 '22 12:10

benjifisher