Skip to content

Commit e733011

Browse files
committed
Drop netrw hack
1 parent 2d6ca49 commit e733011

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

plugin/dispatch.vim

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ function! DispatchComplete(id) abort
7171
return dispatch#complete(a:id)
7272
endfunction
7373

74-
function! s:hijack_netrw_maps() abort
75-
let rhs = maparg('d', 'n')
76-
if len(rhs)
77-
exe 'nnoremap <buffer> <silent> d' rhs
78-
exe 'nnoremap <buffer> <silent> dd' rhs
79-
endif
80-
endfunction
81-
8274
if !exists('g:dispatch_handlers')
8375
let g:dispatch_handlers = [
8476
\ 'tmux',
@@ -96,5 +88,4 @@ augroup dispatch
9688
\ if &buftype ==# 'quickfix' && empty(getloclist(winnr())) && get(w:, 'quickfix_title') =~# '^:noautocmd cgetfile\>\|^:\d*Dispatch\>' |
9789
\ call dispatch#quickfix_init() |
9890
\ endif
99-
autocmd FileType netrw call s:hijack_netrw_maps()
10091
augroup END

0 commit comments

Comments
 (0)