vim change text code example
Example 1: vim replace command
:%s/foo/bar/g
Example 2: vim commands
vim filename
i
*Insert/Edit Text*
*Esc*
:wq (save the file and exit to commands)
:%s/foo/bar/g
vim filename
i
*Insert/Edit Text*
*Esc*
:wq (save the file and exit to commands)