commit 4bb1c4194ff9c45f9108f2c87e3bf0a6da5eb172
parent 30c34c304e702b49934d2519c1508c2f24b72909
Author: Alex Balgavy <alex@balgavy.eu>
Date: Mon, 26 Jul 2021 09:41:42 +0200
vim: replace vim-sandwich with vim-surround
I feel like I never really used the 'advanced' functionality of
vim-sandwich and preferred the way vim-surround worked.
Diffstat:
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -26,7 +26,7 @@ Plug 'rstacruz/sparkup'
Plug 'tpope/vim-endwise'
" Sandwich - super useful plugin for surrounding stuff with quotes/brackets/tags
-Plug 'machakann/vim-sandwich'
+Plug 'tpope/vim-surround'
" Eunuch - shell commands but in vim
Plug 'tpope/vim-eunuch'
@@ -364,19 +364,6 @@ let g:dispatch_no_maps = 1
" Only enable those I'll actually use
nnoremap `<CR> :Dispatch<CR>
nnoremap '<CR> :Start<CR>
-" Sandwich {{{3
-" And add bracket-with-space from surround.vim
-let g:sandwich#recipes = deepcopy(g:sandwich#default_recipes)
-let g:sandwich#recipes += [
- \ {'buns': ['{ ', ' }'], 'nesting': 1, 'match_syntax': 1, 'kind': ['add', 'replace'], 'action': ['add'], 'input': ['}']},
- \ {'buns': ['{\s*', '\s*}'], 'nesting': 1, 'regex': 1, 'match_syntax': 1, 'kind': ['delete', 'replace', 'textobj'], 'action': ['delete'], 'input': ['}']},
- \ {'buns': ['[ ', ' ]'], 'nesting': 1, 'match_syntax': 1, 'kind': ['add', 'replace'], 'action': ['add'], 'input': [']']},
- \ {'buns': ['\[\s*', '\s*\]'], 'nesting': 1, 'regex': 1, 'match_syntax': 1, 'kind': ['delete', 'replace', 'textobj'], 'action': ['delete'], 'input': [']']},
- \ {'buns': ['( ', ' )'], 'nesting': 1, 'match_syntax': 1, 'kind': ['add', 'replace'], 'action': ['add'], 'input': [')']},
- \ {'buns': ['(\s*', '\s*)'], 'nesting': 1, 'regex': 1, 'match_syntax': 1, 'kind': ['delete', 'replace', 'textobj'], 'action': ['delete'], 'input': [')']},
- \ {'buns': ['(', ')'], 'nesting': 1, 'match_syntax': 1, 'kind': ['add', 'replace'], 'action': ['add'], 'input': ['(', 'b']},
- \ {'buns': ['(', ')'], 'nesting': 1, 'match_syntax': 1, 'kind': ['delete', 'replace', 'textobj'], 'action': ['delete'], 'input': ['(', 'b']}
- \ ]
" netrw {{{3
let g:netrw_banner = 0 " hide the banner
let g:netrw_fastbrowse = 2 " only get dir list if not seen, or manually refreshed