DDCODE

Share programming skills from Magic Oriental

upArrow

How does vim replace partial matching strings

 May 11, 2019   question, vim

I use vim to process documents. How do I want to replace a part of a word?
For example, for example

This is a word.

I hope to putword.Word in is replaced with sentence and retained.How?

补充

Perhaps it is not clear. I mean, replace word in word. but word alone or worder will not be replaced.

:s/word\./sentence\./g

Related Posts:

  • Vim Color Matching: Abnormal Color Matching in…
  • Why is nodejs execFile's partial results in stderr
  • The macvim partial configuration is invalid.
  • PHP implements tag matching data and sorts the data…
  • PHP implements tag matching data and sorts the data…
  • How does JAVA use regular expressions to extract…
  • Java splits strings by bytes and then assembles them…
  • Java strings are separated by spaces, but do not…
  • I think 98% of the code I write is about…
<< In iterm2, the vim command is used to open the file. How can this vim support mouse positioning? How to switch command mode quickly in terminal development mode? >>

Related Posts:

  • Vim Color Matching: Abnormal Color Matching in…
  • Why is nodejs execFile's partial results in stderr
  • The macvim partial configuration is invalid.
  • PHP implements tag matching data and sorts the data…
  • PHP implements tag matching data and sorts the data…
  • How does JAVA use regular expressions to extract…
  • Java splits strings by bytes and then assembles them…
  • Java strings are separated by spaces, but do not…
  • I think 98% of the code I write is about…

Tags

Android android-studio apache c c++ centos Css css3 Database Docker Eclipse Express Front end git GitHub golang Html html5 Ios java javascript Jquery Laravel linux macos mongodb mysql Nginx node.js npm objective-c php Programmer python redis ruby shell Spring Sql Swift ubuntu vim vue.js Web xcode

Powered by MyWiki WordPress Theme