From 51806e35487cd3791f4b93fa8da25548b34998a2 Mon Sep 17 00:00:00 2001 From: Camille Dejoye Date: Sat, 6 Jun 2020 16:18:34 +0200 Subject: [PATCH] improvement: allow to repeat with . --- doc/argwrap.txt | 2 +- plugin/argwrap.vim | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/argwrap.txt b/doc/argwrap.txt index 287679f..4805046 100644 --- a/doc/argwrap.txt +++ b/doc/argwrap.txt @@ -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 a :ArgWrap + nmap a (ArgWrapToggle) < ------------------------------------------------------------------------------------------------------------------------ diff --git a/plugin/argwrap.vim b/plugin/argwrap.vim index d9e09f8..594cf67 100644 --- a/plugin/argwrap.vim +++ b/plugin/argwrap.vim @@ -19,3 +19,6 @@ command! ArgWrap call argwrap#toggle() + +nnoremap (ArgWrapToggle) :call argwrap#toggle() + \ silent! call repeat#set("\(ArgWrapToggle)")