osyo-manga / vim-hopping

hopping.vim is incremental buffer line filtering Vim plugin.
53 stars 2 forks source link

Folding problem #4

Closed ipod825 closed 6 years ago

ipod825 commented 6 years ago

Thanks for the great plugin! However, I have a problem that when using this with folding, the folds will not automatically open. It should be easy to solve this problem by adding set nofoldenable when calling HoppingStart. However, I don't know if it's possible to set foldenable when hopping ends so that the folds restore to the original status?

ipod825 commented 6 years ago

nvm, I just send a pull request.

osyo-manga commented 6 years ago

Thanks for issues :) I trying implementation.

osyo-manga commented 6 years ago

I implemented it. Please update plugin and check.

ipod825 commented 6 years ago

It works. Thanks!!!

osyo-manga commented 6 years ago

OK, Thanks for issues and pull request :))

ipod825 commented 6 years ago

Wait. It now raise another problem. When foldenable is set, when you press <CR> in hopping, you will remain at the same line when you call HoppingStart. I guees this is because you restore from mkview.

osyo-manga commented 6 years ago

Oops, Thanks!! I fixed it, Please check!

ipod825 commented 6 years ago

Works well now. Thanks.

osyo-manga commented 6 years ago

Thanks!!!