junegunn / vim-oblique

DEPRECATED Improved /-search (experimental)
83 stars 7 forks source link

Breaks opening folds with "n"/"N" (with foldopen+=search) #58

Open blueyed opened 9 years ago

blueyed commented 9 years ago

I've noticed that folds are not opened during search with n when vim-oblique is being used.

I think it would be a good fix to call zv automatically in case 'foldopen' contains search.

I am not sure if there is a way to undo zv when going to the next/prev search result (which I assume Vim does for its internal n/N).

It works with foldopen=all btw (!), and this appears to be different from enabling all options separately (i.e. adding jump and insert to the default setting).

junegunn commented 9 years ago

I can't reproduce the issue with the following vimrc

call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-pseudocl'
Plug 'junegunn/vim-oblique'
call plug#end()
set foldenable foldmethod=syntax

Am I missing something? The default foldopen contains search.

Akenaide commented 8 years ago

Same issue here, I mainly write python so I have

set fdm=indent