This is probably an incredibly simple question, but I did not find any answer so far (I must lack the right sources, and I don't know where to search in vim's help).I have a condition and I would like it to include 'AND', likeif (condition1 .AND. condition2)   do what I want you to doendifbut I couldn't find the syntax. Same thing for 'OR'.
Use conditional operators AND or OR in an IF statement?
vimscript
As @lcd047 said in his comment, vimscript use C-like operators && and ||.You can find description of their usage on :h expr2. Some important points mentioned by the doc are the followingYou'll find that the operators can be concatenated and && takes precedence over ||, so&nu || &list && &shell == cshIs equivalent to&nu || (&list && &shell == csh)Also once the result is known, the expression short-circuits, that is, further arguments are not evaluated.  This is like what happens in C.If you use: if a || bThe expression will be valid even is b is not defined.