vim-orgmode icon indicating copy to clipboard operation
vim-orgmode copied to clipboard

no fold found

Open OrionRandD opened this issue 2 years ago • 3 comments

Error detected while processing : Traceback (most recent call last): File "", line 1, in File "/home/lea/.vim/bundle/vim-orgmode/ftplugin/orgmode/_vim.p y", line 85, in r res = f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/home/lea/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugin s/ShowHide.py", line 104, in toggle_folding vim.command(u_encode(u'%d,%dfoldclose!' % (heading.start_vim, heading.end_of_last_child_vim))) vim.error: Vim(foldclose):E490: No fold found


I get the above error. How can I fix it?

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jan 11 2023 03:16:36) on debian...

OrionRandD avatar Mar 03 '23 11:03 OrionRandD

Do you have installed Narrow Region Plugin? Sometimes causes confict with the folding

awelormro avatar Mar 27 '23 04:03 awelormro

Do you have installed Narrow Region Plugin? Sometimes causes confict with the folding

I will check if I have installed NR...

OrionRandD avatar Mar 28 '23 16:03 OrionRandD

Another option is the fastfold plugin, just declare in your vimrc the expression method for orgmode files

autocmd FileType org setlocal foldmethod=expr

awelormro avatar Apr 12 '23 16:04 awelormro