Skip to content

Commit 2a16fc8

Browse files
committed
Add <Plug> mapping
1 parent 735dd7a commit 2a16fc8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ yourself by adding the following to the file
5454
`~/.vim/after/ftplugin/markdown.vim` (create it if it does not yet exist):
5555

5656
```vim
57-
nnoremap <buffer> Z! :<C-U>EvalBlock<CR>
57+
nmap <buffer> Z! <Plug>(medieval-eval)
5858
```
5959

6060
## Limitations

ftplugin/markdown/medieval.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ command! -bang -buffer -nargs=? EvalBlock
55
\ call medieval#eval(<q-args>) |
66
\ endif
77

8+
nnoremap <silent> <Plug>(medieval-eval) :<C-U>call medieval#eval()<CR>
9+
810
let b:undo_ftplugin = get(b:, 'undo_ftplugin', '') . '|delc EvalBlock'

0 commit comments

Comments
 (0)