sjl/threesome.vim — Issue #10: Version error not reported with vim 7.2
Author: sktw
Created: 2012-02-01 21:15:55+00:00
State: open

I am currently trying to write a vim plugin using python, and I came across threesome while searching for some sample code. The threesome source has really helped me to get started, so thanks!

Anyway, I decided to try running threesome out of interest. I'm running vim 7.2, and I didn't realise that it required vim 7.3+. However, the error handling code in threesome.vim didn't report the version problem (or if it did, the message got lost). Instead, I just got an unknown function error message from vim.

I ran threesome directly from the command line, rather than from a VCS. Here's the command line and message:

$ gvim -f file1.txt file2.txt file3.txt file4.txt -c 'ThreesomeInit'

Error detected while processing command line:
E117: Unknown function: threesome#ThreesomeInit

(System setup: vim 7.2 on Ubuntu 10.04, i386.)

Removing the version test eliminates this error, so the problem must be in the test logic.