Skip to content

Commit e052da0

Browse files
committed
More mapping changes
Turns out people actually use <Space> and <CR> as motions, so the d family of maps is a no go.
1 parent bafee5f commit e052da0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugin/dispatch.vim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,15 @@ nmap <script> <SID>:. :<C-R>=getcmdline() =~ ',' ? "\0250" : ""<CR>
5757
call s:map('n', 'm<CR>', '<SID>:.Make<CR>')
5858
call s:map('n', 'm<Space>', '<SID>:.Make<Space>')
5959
call s:map('n', 'm!', '<SID>:.Make!')
60+
call s:map('n', 'ym<CR>', '<SID>:.Make<CR>')
61+
call s:map('n', 'ym<Space>', '<SID>:.Make<Space>')
62+
call s:map('n', 'ym!', '<SID>:.Make!')
6063
call s:map('n', '`<CR>', '<SID>:.Dispatch<CR>')
6164
call s:map('n', '`<Space>', '<SID>:.Dispatch<Space>')
6265
call s:map('n', '`!', '<SID>:.Dispatch!')
63-
call s:map('n', 'd<CR>', '<SID>:.Dispatch<CR>')
64-
call s:map('n', 'd<Space>', '<SID>:.Dispatch<Space>')
65-
call s:map('n', 'd!', '<SID>:.Dispatch!')
66+
call s:map('n', 'yd<CR>', '<SID>:.Dispatch<CR>')
67+
call s:map('n', 'yd<Space>', '<SID>:.Dispatch<Space>')
68+
call s:map('n', 'yd!', '<SID>:.Dispatch!')
6669

6770
function! DispatchComplete(id) abort
6871
return dispatch#complete(a:id)

0 commit comments

Comments
 (0)