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)")