Closed t9md closed 5 years ago
Inspired by and continuation of #1102
customSurroundPairs
[openText:string, closeText:string, addSpace:boolean]
addSpace
surround
delete-surround
change-surround
"vim-mode-plus": customSurroundPairs: ''' { "p": ["<?php", "?>", true], "%": ["<%", "%>", true], "=": ["<%=", "%>", true], "s": ["\\"", "\\""] } '''
With the above example and y s is mapped to surround and c S is mapped to change-surround
y s
c S
y s i w p
c S p %
Inspired by and continuation of #1102
customSurroundPairs
config is introduced, its value is JSON string with following key-value pair.[openText:string, closeText:string, addSpace:boolean]
addSpace
is optional, it control padding space.surround
delete-surround
change-surround
Configuration example
With the above example and
y s
is mapped tosurround
andc S
is mapped tochange-surround
y s i w p
:(surround inner-word p(PHP tag)).c S p %
:(change p(PHP-tag) surround to %(Ruby-irb) tag.