vim可视模式下交换逗号两边

fun! Jhda()
:silent %s/\%V\(.*\),\(.*\)/\2,\1/ge
"很奇怪,有时多行没问题,有时有问题
endf
posted @ 2021-05-25 21:53  zjh6  阅读(10)  评论(0)    收藏  举报  来源