nmap S xmap S let g:sandwich_no_default_key_mappings = 1 let g:operator_sandwich_no_default_key_mappings = 1 let g:textobj_sandwich_no_default_key_mappings = 1 silent! nmap Sa (operator-sandwich-add) silent! xmap Sa (operator-sandwich-add) silent! omap Sa (operator-sandwich-g@) silent! nmap Sa (operator-sandwich-add) silent! nmap Sd (operator-sandwich-delete)(operator-sandwich-release-count)(textobj-sandwich-query-a) silent! nmap Sr (operator-sandwich-replace)(operator-sandwich-release-count)(textobj-sandwich-query-a) silent! nmap Sdb (operator-sandwich-delete)(operator-sandwich-release-count)(textobj-sandwich-auto-a) silent! nmap Srb (operator-sandwich-replace)(operator-sandwich-release-count)(textobj-sandwich-auto-a) let g:sandwich#recipes = deepcopy(g:sandwich#default_recipes) let g:sandwich#recipes += [ \ {'buns': ['(', ')'], 'nesting': 1, 'input': ['j(', 'j)', 'jp']}, \ {'buns': ['「', '」'], 'nesting': 1, 'input': ['j[', 'j]', 'jB']}, \ {'buns': ['『', '』'], 'nesting': 1, 'input': ['j{', 'j}', 'jb']}, \ {'buns': ['【', '】'], 'nesting': 1, 'input': ['j<', 'j>', 'jk']}, \ ] let g:sandwich#recipes += [ \ { \ 'buns': ['『', '』'], \ 'filetype': ['changelog'], \ 'nesting': 1, \ 'input': ['j{', 'j}', '['] \ }, \ { \ 'buns': ['\(', '\)'], \ 'filetype': ['vim'], \ 'nesting': 1, \ }, \ \ { \ 'buns': ['\%(', '\)'], \ 'filetype': ['vim'], \ 'nesting': 1, \ }, \ { \ 'buns': ['~~', '~~'], \ 'filetype': ['vim'], \ 'nesting': 1, \ }, \ { \ 'buns': ['**', '**'], \ 'filetype': ['changelog'], \ 'nesting': 1, \ }, \ { \ 'external': ["\(textobj-parameter-i)", "\(textobj-functioncall-a)"], \ 'noremap': 0, \ 'kind': ['delete', 'replace', 'query'], \ 'input': ['f'] \ }, \ ]