vi replace string
Vi/vim can use the :s command to replace strings. In the past, only one format was used to replace the full text. Today, I found that there are many ways to write this command, and record a few here for future reference.:s/vivian/sky/ Replace the first vivian in the current line with sky:s/vivian/sky/g Replace all vivian […]