chrisbra/Recover.vim

[Bug] Unknown function: trim

ZeyuSun opened this issue · 1 comments

This modification from PR #69 gives me an error every time I open vim

let a=trim(execute('swapname'))

Error detected while processing function recover#CheckSwapFileExists[4]..<SNR>87_Swapname:
line    4:
E117: Unknown function: trim
E15: Invalid expression: trim(execute('swapname'))
line    8:
E121: Undefined variable: a
E15: Invalid expression: a[1:] == 'No swap file'

Is this a vim version issue? I am using vim version 8.0.1453.

Ah, when I merged that, I wondered whether trim() is recent enough. Apparently not :(

Apparently this needs vim 8.0.1630