From 93284608cc8c2cb63047452f40d8fe4855fadaa0 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 20 Feb 2015 13:03:38 +0900 Subject: [PATCH] Improved trimming around = and : characters --- autoload/argwrap.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/argwrap.vim b/autoload/argwrap.vim index dbdcb21..871cd1e 100644 --- a/autoload/argwrap.vim +++ b/autoload/argwrap.vim @@ -102,7 +102,8 @@ endfunction function! argwrap#trimArgument(text) let l:trim = substitute(a:text, '^\s*\(.\{-}\)\s*$', '\1', '') - return substitute(l:trim, '\([:=]\)\s\{2,}', '\1 ', '') + let l:trim = substitute(l:trim, '\([:=]\)\s\{2,}', '\1 ', '') + return substitute(l:trim, '\s\{2,}\([:=]\)', ' \1', '') endfunction function! argwrap#extractContainerArgs(text)