Skip to content

Commit f402098

Browse files
committed
Add ` maps
It's not looking good for d.
1 parent 673b6e6 commit f402098

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

doc/dispatch.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ COMMANDS *dispatch-commands*
124124

125125
MAPS *dispatch-maps*
126126

127-
*dispatch-d<CR>*
128-
d<CR> Equivalent to |:Dispatch|<CR>.
127+
*dispatch-`<CR>*
128+
`<CR> Equivalent to |:Dispatch|<CR>.
129129

130-
*dispatch-d<Space>*
131-
d<Space> Equivalent to |:Dispatch|<Space>.
130+
*dispatch-`<Space>*
131+
`<Space> Equivalent to |:Dispatch|<Space>.
132132

133-
*dispatch-d!*
134-
d! Equivalent to |:Dispatch!|.
133+
*dispatch-`!*
134+
`! Equivalent to |:Dispatch!|.
135135

136136
*dispatch-m<CR>*
137137
m<CR> Equivalent to |:Make|<CR>.

plugin/dispatch.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ 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', '`<CR>', '<SID>:.Dispatch<CR>')
61+
call s:map('n', '`<Space>', '<SID>:.Dispatch<Space>')
62+
call s:map('n', '`!', '<SID>:.Dispatch!')
6063
call s:map('n', 'd<CR>', '<SID>:.Dispatch<CR>')
6164
call s:map('n', 'd<Space>', '<SID>:.Dispatch<Space>')
6265
call s:map('n', 'd!', '<SID>:.Dispatch!')

0 commit comments

Comments
 (0)