diff options
author | Teddy Wing | 2019-11-15 20:12:10 +0100 |
---|---|---|
committer | Teddy Wing | 2019-11-18 23:20:31 +0100 |
commit | f349067741bf1bc1057a0caf1daa1297fdf3102e (patch) | |
tree | 025c12ee372c501db6e6481ff46594c80ba9c08f | |
parent | c035f993835f70c2e330ac217416a5d91dc0d352 (diff) | |
download | dotvim-f349067741bf1bc1057a0caf1daa1297fdf3102e.tar.bz2 |
vimrc: Add gS mapping to ArgWrap
After reading Drew Neil's Follow My Leader again
(http://vimcasts.org/blog/2014/02/follow-my-leader/), I discovered this
issue in which Tim Pope suggests mappings for the SplitJoin plugin:
https://github.com/AndrewRadev/splitjoin.vim/issues/14#issuecomment-9666431
This inspired my to add a mapping for `ArgWrap`. I decided not to before
because `:ar<Tab><Enter>` seemed like it wasn't much effort to type.
But, why not make this a touch quicker?
At first I considered `cJ`, which is available:
nnoremap cJ :ArgWrap<cr>
However, in the aforementioned issue, Pope suggests `gS` as being a free
lhs sequence, which seems nicer.
-rw-r--r-- | vimrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -438,6 +438,9 @@ " 2019.07.03: " * Use Undotree on Windows. " +" 2019.11.15: +" * Add gS mapping to :ArgWrap. +" " Pathogen @@ -671,6 +674,10 @@ let g:go_fmt_command = 'goimports' nnoremap <leader>sm :call whitespace_method_chain#SplitMethodChainToMultipleLines()<cr> +" ArgWrap +nnoremap gS :ArgWrap<cr> + + " Mappings " ======== |