-
Hi! I'm currently stuck, I don't have a lot of experience with vim and I have no idea how configure both plugins to work together. 😄 I love your plugin and vim-sandwich too and I'd like them to be able to work together. Thanks in advance!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
" ? = key you'd like to use
" make sure to use '(n|x)map', and not '(n|x)noremap'
" Normal mode
nmap ? <Plug>Lightspeed_s
nmap ? <Plug>Lightspeed_S
" Visual mode
xmap ? <Plug>Lightspeed_s
xmap ? <Plug>Lightspeed_S See also Personally I would use vim-sandwich with vim-surround keybindings, and Lightspeed with the defaults. (In that case the Visual-mode mappings of sandwich should still be tweaked though, because it occupies |
Beta Was this translation helpful? Give feedback.
s
is indeed occupied in Normal and also in Visual mode by vim-sandwich, so if you'd like to keep using sandwich with its default mappings, you should specify custom mappings for Lightspeed in your config:See also
:h lightspeed-custom-mappings
, and feel free to ask for more help if you're still stuck.Personally I would use vim-sandwich with vim-surround keybindings, and Lightspeed with the defaults. (In that case the Visual-mode mappings of sandwich should still be tweaked th…