vim:setts: Don't auto-open folds when searching

This makes it a lot easier to restrict the search (besides searching in
visual selection, which is quite limited). The cursor will still land on
the closed fold but only once, independent of the number of hits inside
of the fold.
This commit is contained in:
2024-10-28 16:54:58 +01:00
parent 4d93db3947
commit c011f2ed6a

View File

@@ -110,7 +110,8 @@ set breakindent
let &showbreak = '\ '
" Replace concealable characters
set conceallevel=1
" Do not automatically open folds when searching
set foldopen-=search
if (exists('g:loaded_gitgutter'))
" Augment the default `foldtext()` with an indicator whether the folded
" lines have been changed.