Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列を使用して VIM で列/テキストを移動する方法を考えていました。並べ替える必要がある名前の短いリストがあります。これは、姓の最初のミドルからファーストミドルラストに配置する必要があります。
リストの例は次のとおりです。
文字列は次のようになるはずだと考えていました。
:s/\([A-z]\{2}\)\(\[A-z]\{2}\)/2\1/
ありがとう