xxx <=> zzz
Source text:
xxxyyyzzz
Launch command:
:s/???/???/
It will be:
zzzyyyxxx
Run the same command:
Return to source:
just how to switch case (~)
aBCdeFg aBCdeFg
aBCdeFg
Take a look at this: Is it possible to replace multiple elements in one regex in VIM or Perl?
Try the following:
:s/(...)(yyy)(...)/\3\2\1/
You can always write your own macro. I assume that the macro for this particular example would not be useful to you, but I could post it if you want.
Source: https://habr.com/ru/post/908406/More articles:How Backbone.JS handles models with computed attributes - backbone.jsUsing columns with special characters in formulas from R - rBoost symbol not found - boostVim replaces two words with each other - vimMagento - difference between quote and order - phpDomain wide local memory loss for I6 and IE7? - javascriptfind the location of {x, y} text in uilabel - objective-cWhy do I need a prep interface in Struts2? - javaHow to check if a parameter is an integral constant expression in a C preprocessor macro? - cBonjour / DNS-SD on Windows - c ++All Articles