Merge pull request #22 from elythyr/improvement-repeat

improvement: allow to repeat with .
This commit is contained in:
Alex Yatskov 2020-06-06 14:16:30 -07:00 committed by GitHub
commit 92c418f57b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>