diff --git a/plugin/sneak.vim b/plugin/sneak.vim index 6f868e4..3c349ee 100644 --- a/plugin/sneak.vim +++ b/plugin/sneak.vim @@ -172,6 +172,11 @@ func! sneak#to(op, input, inputlen, count, repeatmotion, reverse, inclusive, str endif "search succeeded + " if &foldopen contains search, folds are opened when jumping to matches + if !empty(matchstr(&foldopen,"search")) + norm! zv + endif + call sneak#hl#removehl() if (!is_op || a:op ==# 'y') "position _after_ search