First of all, let foo = bar != 0 is valid VimL and seems to work fine.
The real problem I encountered is that in a (defm) method definition, the complete rest of the method body is being ignored…the next line becomes an "endfunction".
Putting parentheses around the bar != 0 fixes things (though by preventing the expansion to the above).
When using this assigment syntax:
riml creates
First of all,
let foo = bar != 0
is valid VimL and seems to work fine. The real problem I encountered is that in a (defm) method definition, the complete rest of the method body is being ignored…the next line becomes an "endfunction". Putting parentheses around thebar != 0
fixes things (though by preventing the expansion to the above).