すべて同じ構造のテキスト行があり、すべての行で2つの要素の順列を作成したいと思います。
1257654 some text (which may be long) #Foo
1543098 some other text #Barbar
1238769 whatever #Baz
2456874 something else #Quux
入手したい:
#Foo some text (which may be long) 1257654
#Barbar some other text 1543098
#Baz whatever 1238769
#Quux something else 2456874
これは私が立ち往生しているところです:
:%s/\(\d\{7\}\)\(#.\{-}\)/\2\1/
どこで私は間違えましたか ?