How to add value beginning and after line using vim command in linux

^ = for beginning line
$ = for after line

Add value in beginning of line using vim editor
:%s/^/value_with/g


Add value after line using vim editor
:%s/$/value_with/g