LucHermitte / local_vimrc

Per project/tree configuration plugins
GNU General Public License v3.0
125 stars 7 forks source link

Usage of `LetIfUndef` with `lh-vim-lib` 4.0.0 breaks #8

Closed linduxed closed 7 years ago

linduxed commented 7 years ago

This line breaks with the latest version of lh-vim-lib (at least that's what I think is happening). It was introduced in 30f837f11e4bafdfc1e9bff7c986f54c3b063a86.

The following error is produced when one starts Vim:

Error detected while processing function lh#let#if_undef:
line   11:
E605: Exception not caught: Cannot set ['g:local_vimrc_options._do_handle  { file -> execute(''source ''.escape(file, '' \$''))}']: Vim(let):E15: Invalid expression: > execute('source '.escape(file, ' \$'))} @ function lh#let#if_undef[3]..<SNR>143_BuildPublicVariableNameAndValue, line 12
LucHermitte commented 7 years ago

Sorry. My mistake.

I'm trying to fix and update some other plugins and on my way I've used 2 new features from latest versions of Vim (lambdas and execute()). This "regression" should be fixed now.