Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
blueyed opened this issue Sep 3, 2015 · 2 comments
Open

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

blueyed opened this issue Sep 3, 2015 · 2 comments

Comments

@blueyed
Copy link

blueyed commented Sep 3, 2015

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
Copy link
Owner

junegunn commented Sep 5, 2015

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
Copy link

Akenaide commented Jan 8, 2016

Same issue here, I mainly write python so I have

set fdm=indent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants