t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

add custom surround inspired @isundaylee's PR #1104

Closed t9md closed 5 years ago

t9md commented 5 years ago

Inspired by and continuation of #1102

Configuration example

"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