Fork me on GitHub


A community-driven vim distribution

Home | About | Documentation | Development | Community | Sponsors

Available APIs » data#string


data#string API provides some functions to manipulate a string. Here is an example for using this api:

let s:STR = SpaceVim#api#import('data#string')
let str1 = '  hello world   '
let str2 = s:STR.trim(str1)
echo str1
" then you will see only `hello world`


name description
trim(str) remove spaces from the beginning and end of a string, return the resuilt

Hosted on GitHub, Help improve this page — Theme by mattgraham,