jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.12k stars 268 forks source link

no fold found #384

Open OrionRandD opened 1 year ago

OrionRandD commented 1 year ago

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...

awelormro commented 1 year ago

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

OrionRandD commented 1 year ago

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

I will check if I have installed NR...

awelormro commented 1 year ago

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

autocmd FileType org setlocal foldmethod=expr