wincent / loupe

🔍 Enhanced in-file search for Vim
BSD 2-Clause "Simplified" License
144 stars 6 forks source link

Search mappings like n and N don't open folds #9

Closed adriaanzon closed 8 years ago

adriaanzon commented 8 years ago

When using the search mappings n, N, *, #, g# or g*, and the match happens to be in a fold, the fold doesn't open, unlike the default vim behavior.

I'm on version 7.4.1910

I think a simple solution would be to add zv right below this line.

wincent commented 8 years ago

Thanks for the report. I'd subconsciously noticed this but kept pushing it off. I'll check out your suggested fix and apply it (or something equivalent).