@trim() Function

Top  Previous  Next

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

Syntax:

@trim(string-expression)

 

Examples:

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

 

@set(v:x,'abc   ')

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