Skip to content

Commit

Permalink
Merge pull request #52 from h3xx/master
Browse files Browse the repository at this point in the history
Respect existing setting for g:netrw_banner
  • Loading branch information
tpope committed Jun 30, 2015
2 parents ac89396 + df5ce99 commit ebd2239
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 ebd2239

Please sign in to comment.