Home » Questions » Computers [ Ask a new question ]

Is there a strpad function in vim

Is there a strpad function in vim

Is there an in-built function in vim that lengthens a string to a certain amount.

Asked by: Guest | Views: 143
Total answers/comments: 1
Guest [Entry]

"You will have to play with repeat:

:let str .= repeat(' ', 10-strlen(str))"