When I search and I have closed folds, vim will automatically open the closed fold if next match is in the closed fold. Is there setting to disable this auto-opening ? Not to open the closed fold when searching ?
You may want to add set foldopen-=search to your vimrc file. Just read :h 'foldopen' Best wishes, Georg