vim数字转盘符

fun! Zpf()
"转盘符,选中.1为c,2为d
'<,'>s/\d\+/\=nr2char(submatch(0)+66)/g
endf

参考地址1
参考地址2,里面有个选区中的替换
多区间替换:

:for range in split('6,10 14,18')| exe range 's/<search_string>/<replace_string>/g' | endfor

参考地址3

posted @ 2020-11-15 15:45  zjh6  阅读(14)  评论(0)    收藏  举报  来源