In Vimscript, as in c, only the numeric value zero is false in a Boolean context; any non-zero numeric value-whether positive or negative-is considered true.
和c一样,在Vimscript中,对于布尔值来说,只有数值0为假;任何非0数值—不管是正数还是负数—都为真。
Enumerations and numeric ranges: For example, the value of a particular string attribute must be a, c, or D. Another example: the value of a particular numeric must be between 1 and 500.
枚举与数字范围:例如,某个特定字符串属性必须为A、c或者d。再比如,某个特定的数字必须在1至500之间。
Now we're not dealing with C and C arrays but also want to use string offsets so we need a function to calculate a numeric value, a hash, for each key.
现在我们处理的不是C语言和它的数组,我们想用字符串偏移量,所以我们需要一个哈希函数,为每个键值计算出一个数值。
应用推荐