Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在VIM中进行文本替换 | 织织 #26

Open
mist-river opened this issue Mar 1, 2021 · 0 comments
Open

在VIM中进行文本替换 | 织织 #26

mist-river opened this issue Mar 1, 2021 · 0 comments

Comments

@mist-river
Copy link
Owner

https://zhizhi123.com/2016/07/06/vim-string-replace/

1.替换当前行中的内容: :s/from/to/ (s即substitude) :s/from/to/ : 将当前行中的第一个from,替换成to。如果当前行含有多个 from,则只会替换其中的第一个。 :s/from/to/g : 将当前行中的所有from都替换成to。 :s/from/to/gc : 将当

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant