@triml() Function

Top  Previous  Next

@triml() function eliminates the white space only at the beginning of the given string and returns the result.

Syntax:

@triml(string-expression)

 

Examples:

@triml(' xx ')  @// result: 'xx '

 

@set(v:x,'abc  ')

@triml(v:x)     @// result: 'abc  '