vim-repeat
作用
重复一个插件的操作,支持surround.vim,通过surround操作之后的行为.号重复。
安装
通过Bundle安装,在.vimrc中添加:
示例,与surround结合使用。
1)将如下”双引号都替换成’单引号1
2
3
4
5"hello"
"hello"
"hello"
"hello"
"hello"
2)执行: cs"'1
2
3
4
5'hello'
"hello"
"hello"
"hello"
"hello"
3)j.1
2
3
4
5'hello'
'hello'
"hello"
"hello"
"hello"
4)重复3)1
2
3
4
5'hello'
'hello'
'hello'
'hello'
'hello'