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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user