aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-10-20 19:41:25 +0200
committerTeddy Wing2020-10-21 19:53:43 +0200
commitf3ee7ca8ae9bbf9cfdc4c2bd438a8fac9b365d77 (patch)
tree94088eb155aef1ecde6d088744f1d26268633b42
parent284d25e594cc6cd39547f3ee7e9f568b2017aabd (diff)
downloaddotvim-f3ee7ca8ae9bbf9cfdc4c2bd438a8fac9b365d77.tar.bz2
vimrc: Make the `gS` command repeatable
Allow repeating the ArgWrap mapping via 'repeat.vim' to make it even easier to use.
-rw-r--r--vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 35394ba..2bec651 100644
--- a/vimrc
+++ b/vimrc
@@ -473,6 +473,9 @@
" 2020.10.13:
" * Add command alias `T` to `TComment`.
"
+" 2020.10.19:
+" * Make `gS` command repeatable.
+"
" Pathogen
@@ -715,7 +718,7 @@ nnoremap <leader>sm :call whitespace_method_chain#SplitMethodChainToMultipleLine
" ArgWrap
-nnoremap gS :ArgWrap<cr>
+nnoremap gS :call argwrap#toggle() <Bar> silent! call repeat#set('gS')<cr>
" TComment