improvement: allow to repeat with .

This commit is contained in:
Camille Dejoye 2020-06-06 16:18:34 +02:00
parent 7e3db5f517
commit 51806e3548
2 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,7 @@ INSTALLATION
2. Create a keyboard binding for the `ArgWrap` command inside your `~/.vimrc` file.
For example, to declare a normal mode mapping, add the following command:
>
nnoremap <silent> <leader>a :ArgWrap<CR>
nmap <silent> <leader>a <Plug>(ArgWrapToggle)
<
------------------------------------------------------------------------------------------------------------------------

View File

@ -19,3 +19,6 @@
command! ArgWrap call argwrap#toggle()
nnoremap <silent> <Plug>(ArgWrapToggle) :call argwrap#toggle() <BAR>
\ silent! call repeat#set("\<Plug>(ArgWrapToggle)")<CR>