justinmk / vim-sneak

The missing motion for Vim :athletic_shoe:
http://www.vim.org/scripts/script.php?script_id=4809
MIT License
3.24k stars 88 forks source link

vim-sneak conflicts with regular usage of `;` #286

Closed searleser97 closed 2 years ago

searleser97 commented 2 years ago

I usually use vim-sneak just to teleport from one line to another vertically at some position, and when moving in the same line I just use the classic f or t and then press ; to move to the next match in the same line.

When using this plugin, at the moment I press ; (semicolon) It teleports me to some previous 2-character search. How can I disable this behavior? I don't find myself repeating my vertical search, it is precise enough with label mode on

justinmk commented 2 years ago

Map <Plug>Sneak_; to something else. Then sneak will not set up its default ; mapping. Note: do this before plugin/sneak.vim is sourced by Vim / your plugin manager.

    map <f98> <Plug>Sneak_;
    map <f99> <Plug>Sneak_,