aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-27 08:54:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-07-01 09:43:38 +1200
commitaecf1196eb453493667d52053963c52ba00e7d08 (patch)
tree01fb03597b6cfbfbcd37e8859b09db07aaaf1572
parentFactor out double-escape for opts into function (diff)
downloaddotfiles-aecf1196eb453493667d52053963c52ba00e7d08.tar.gz
dotfiles-aecf1196eb453493667d52053963c52ba00e7d08.zip
Flatten function
-rw-r--r--vim/vimrc4
1 files changed, 1 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index cf2bc8a6..6032d01a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -9,9 +9,7 @@ function! s:OptionSplit(string) abort
\)
endfunction
function! s:EscItemExec(string) abort
- return escape(escape(
- \ a:string,
- \ ','), '\ %#|"')
+ return escape(escape(a:string, ','), '\ %#|"')
endfunction
if exists('$MYVIM')
execute 'set runtimepath^='.s:EscItemExec($MYVIM)