On 4/10/07, Horvath Adam <[EMAIL PROTECTED]> wrote:
Thanks, it's really straightforward, but where is it in the manual? http://vimdoc.sourceforge.net/htmldoc/usr_41.html - here I can not find.
Notice that usr_41.html is not all-covering. It is not a *reference*. It is only a manual(tutorial). Details which do not appear in tutotial (usr_NN) vimdocs are found in the *reference* pages. You find *reference* pages by several methods: - by help tags completion: :help expression<Tab> - get familiar with list of reference vimdocs: :cd $VIMRUNTIME/doc :!ls - by / search within vimdoc - by bruteforce search through all vimdocs: :helpgrep The relevant reference doc in this case is ':help eval' -- it covers everything about expression evaluation. Specificallyabout && and ||: You can find && and || under: :help expression-syntax then 5 lines below you have: |expr2|.....expr3 || expr3 ........logical OR |expr3|.....expr4 && expr4 ........logical AND Additionally, you can notice that vim expression syntax is rather C-like. This explains spelling of many C ops (==, &&, ||, ). Yakov