This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" documentation and source are credited to https://github.com/mgarort | |
" Make vim-sneak mappings more consistent in visual mode by making s go to next match and S | |
" go to previous match, while keeping vim-surround functionality through z | |
" (mnemonics: vim-zurround) Explained in this GitHub issue: | |
" https://github.com/justinmk/vim-sneak/issues/268 | |
" | |
" So now the behaviour is: | |
" - Normal: s and S to move with sneak | |
" - Visual: s and S to move with sneak, z to surround (zurround) |