Skip to content

Instantly share code, notes, and snippets.

View LanHikari22's full-sized avatar
📡

Lan LanHikari22

📡
  • Minneapolis MN, US
View GitHub Profile
@LanHikari22
LanHikari22 / vim-sneak - use s in operator mode.vim
Created February 15, 2021 01:17
Remap vim-surround to 'z' to allow vim-sneak to use 's' in operator mode
" 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)