From f349067741bf1bc1057a0caf1daa1297fdf3102e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 15 Nov 2019 20:12:10 +0100 Subject: 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` 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 However, in the aforementioned issue, Pope suggests `gS` as being a free lhs sequence, which seems nicer. --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index c931171..55a39af 100644 --- a/vimrc +++ b/vimrc @@ -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 sm :call whitespace_method_chain#SplitMethodChainToMultipleLines() +" ArgWrap +nnoremap gS :ArgWrap + + " Mappings " ======== -- cgit v1.2.3