Thursday, December 26, 2013

Re: customize netrw, remove info header

On Wednesday, December 4, 2013 1:46:04 PM UTC+1, Chris Mueller wrote:
> Am Donnerstag, 23. April 2009 01:25:41 UTC+2 schrieb _sc_:
> > On Wednesday 22 April 2009 2:38 pm, Charles Campbell wrote:
> > >
> > > Brendon Gleeson wrote:
> > > > 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?
> > > >
> > > 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.
> >
> > could there be, if we asked nicely?
> >
> > sc
>
> 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

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?

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: