Vim replacement operations are often used: % s/oldstring/newstring/g and: % s/oldstring/newstring/gc to replace the oldstring in vim with newstring. Today, when marking samples, I searched for more vim replacement operations and sorted them as follows: 1.% s/oldstring/newstri... vim replacement operations are often used: % s/oldstring/newstring/g and: % s/oldstring/newstring/gc to replace the oldstring in vim with newstring. When marking samples today, I searched for more vim replacement operations, as shown below: 1 ,: % s/oldstring/newstring/replace the oldstring/gc that appears for the first time in all rows to choose whether to replace 2 ,: % s/oldstring/newstring/g replace all oldstring/gc in all rows. same as above 3,: n, $ s/oldstring/newstring/g replace all oldstrings starting from line n to the last line ($ indicates the last line, which can be m, indicating line n to line m) 4 ,:., $ s/oldstring/newstring/g replace all oldstring 5 and ,: s # oldstring/# newstring/# replace oldstring/with newstring/today is the day of 1 year of employment. no matter how bad the past is, I will take it seriously and treat it well in the future.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service