customize netrw, remove info header

3,441 views
Skip to first unread message

Brendon Gleeson

unread,
Apr 22, 2009, 6:51:06 AM4/22/09
to vim_use
how do i hide this part of the nerw file browser?:

< HIDE >
"
============================================================================
" Netrw Directory Listing
(netrw v114)
" /home/brendon
" Sorted by name
" Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,\.[a-np-z]$,*,\.info$,\.swp$,
\.o$\.obj$,\.bak$
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by
x:exec
"
============================================================================
< /HIDE >
../
./
i have tried setting g:netrw_menu=0 in .vimrc but it doesn't work?

Charles Campbell

unread,
Apr 22, 2009, 3:38:25 PM4/22/09
to vim...@googlegroups.com
Setting g:netrw_menu to zero works; its just that it suppresses
generation of the pull-down
menu usually available under the gui-version of vim (gvim), not the banner.

There is no option to suppress the banner.

Regards,
Chip Campbell

_sc_

unread,
Apr 22, 2009, 7:25:41 PM4/22/09
to vim...@googlegroups.com

could there be, if we asked nicely?

sc


Chris Mueller

unread,
Dec 4, 2013, 7:46:04 AM12/4/13
to vim...@googlegroups.com, toot...@swbell.net

I know this issue is very old. But if you're searching for that in google, you will always come to this postings. It's also not clear in other references and it took some time for myself to find it out.

Suppressing the banner is now possible with the current vim version. Just simple add into your ~/.vimrc:

let g:netrw_banner=0

Chris

Bruno Sutic

unread,
Dec 26, 2013, 7:48:36 PM12/26/13
to vim...@googlegroups.com, toot...@swbell.net

It would be cool if `let g:netrw_banner=0` was the default.

Just recently, a new plugin by Tim Pope came out that promotes this setting.
https://github.com/tpope/vim-vinegar/blob/master/plugin/vinegar.vim#L21

Mr. Campbell, what do you think?

Gary Johnson

unread,
Dec 27, 2013, 2:46:50 AM12/27/13
to vim...@googlegroups.com
On 2013-12-26, Bruno Sutic wrote:

> It would be cool if `let g:netrw_banner=0` was the default.

I disagree. Without the banner being displayed by default, most
users would never know that it was available nor would they know
about the netrw commands that are shown there.

Anyone annoyed by the banner should know to check ":help netrw" to
find out if and how it could be removed.

Regards,
Gary

Reply all
Reply to author
Forward
0 new messages