aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-09 16:58:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-09 16:58:03 +1200
commit9707e38d9a1d574f269426a9464fe69d365b34fa (patch)
treedb30a14a01335c839fe09c3911b6f4d6d2653467 /vim/vimrc
parentTest $MYVIM is defined and non-empty for defining (diff)
parentBump VERSION (diff)
downloaddotfiles-9707e38d9a1d574f269426a9464fe69d365b34fa.tar.gz
dotfiles-9707e38d9a1d574f269426a9464fe69d365b34fa.zip
Merge branch 'hotfix/v8.31.2' into develop
* hotfix/v8.31.2: Make copies for map(), filter(), and reverse()
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc14
1 files changed, 9 insertions, 5 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1825c53e..32dbabcd 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -2,7 +2,7 @@
" Tom Ryder (tejr)’s Literate Vimrc
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"
-" Last updated: Sat, 09 May 2020 01:47:32 UTC
+" Last updated: Sat, 09 May 2020 04:57:54 UTC
"
" │ And I was lifted up in heart, and thought
" │ Of all my late-shown prowess in the lists,
@@ -118,10 +118,12 @@ if xdg#['config']['home'] !=# ''
endif
if !empty(s:xdgconfigpaths)
execute 'set runtimepath^='.option#Escape(join(map(
- \ s:xdgconfigpaths, 'option#item#Escape(v:val)'
+ \ copy(s:xdgconfigpaths),
+ \ 'option#item#Escape(v:val)'
\), ','))
execute 'set runtimepath+='.option#Escape(join(map(
- \ reverse(s:xdgconfigpaths), 'option#item#Escape(v:val.''/after'')'
+ \ reverse(copy(s:xdgconfigpaths)),
+ \ 'option#item#Escape(v:val.''/after'')'
\), ','))
endif
unlet s:xdgconfigpaths
@@ -427,10 +429,12 @@ endif
if !empty(s:refdirs)
try
execute 'set dictionary^='.option#Escape(join(map(
- \ s:refdirs, 'option#item#Escape(v:val.''/dictionary.txt'')'
+ \ copy(s:refdirs),
+ \ 'option#item#Escape(v:val.''/dictionary.txt'')'
\), ','))
execute 'set thesaurus^='.option#Escape(join(map(
- \ s:refdirs, 'option#item#Escape(v:val.''/thesaurus.txt'')'
+ \ copy(s:refdirs),
+ \ 'option#item#Escape(v:val.''/thesaurus.txt'')'
\), ','))
catch /^Vim\%((\a\+)\)\=:E474:/
endtry