Viml conditionals
From wikinotes
WARNING:
in vim, 0
is FALSE, and 1
is TRUE.
If Statements
" If Statement if ( var == 1 ) echo var elseif ( var == 2 || var == 3 ) echo var else echo var endif" If Not Statement if !( var == 1 ) echom "var doesn't equal 1" endif" If And Statement if (var == 1) && (var != 0) echom "condition satisfied endif</syntaxhighlight>