Skip to content

Commit

Permalink
Respect existing setting for g:netrw_banner
Browse files Browse the repository at this point in the history
Changes banner behavior to make the banner hidden by default, but still
allows the user to make it unhidden.
  • Loading branch information
h3xx committed Jun 24, 2015
1 parent ac89396 commit df5ce99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/vinegar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ let s:escape = 'substitute(escape(v:val, ".$~"), "*", ".*", "g")'
let g:netrw_list_hide =
\ join(map(split(&wildignore, ','), '"^".' . s:escape . '. "$"'), ',') . ',^\.\.\=/\=$' .
\ (get(g:, 'netrw_list_hide', '')[-strlen(s:dotfiles)-1:-1] ==# s:dotfiles ? ','.s:dotfiles : '')
let g:netrw_banner = 0
if !exists("g:netrw_banner")
let g:netrw_banner = 0
endif
let s:netrw_up = ''

nnoremap <silent> <Plug>VinegarUp :call <SID>opendir('edit')<CR>
Expand Down

0 comments on commit df5ce99

Please sign in to comment.