Skip to content

Commit bb1bcdd

Browse files
mariduvtpope
authored andcommitted
Don't save <Plug>VinegarUp as a prior netrw - map
1 parent 43576e8 commit bb1bcdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vinegar.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ endfunction
113113
function! s:setup_vinegar() abort
114114
if !exists('s:netrw_up')
115115
let orig = maparg('-', 'n')
116-
if orig =~? '^<plug>'
116+
if orig =~? '^<plug>' && orig !=# '<Plug>VinegarUp'
117117
let s:netrw_up = 'execute "normal \'.substitute(orig, ' *$', '', '').'"'
118118
elseif orig =~# '^:'
119119
" :exe "norm! 0"|call netrw#LocalBrowseCheck(<SNR>123_NetrwBrowseChgDir(1,'../'))<CR>

0 commit comments

Comments
 (0)