Skip to content

How to configure lightspeed to work with vim-sandwich? #60

Answered by ggandor
Dema asked this question in Q&A
Discussion options

You must be logged in to vote

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:

" ? = 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 :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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants