On Saturday, January 11, 2020 at 2:41:06 AM UTC+1, Maral Watanabe wrote:
>
> Hi,
>
> I store all my notes in a vimwiki with markdown syntax. 
> These are the relevant settings from my .vimrc:
>
> let g:vimwiki_table_mappings=0
> let g:vimwiki_table_auto_fmt=0
> let g:vimwiki_folding='expr'
>
> let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', 
> '.mdown': 'markdown'}
> let g:vimwiki_list = [{'path': '~/Documents/vimwiki/', 'syntax': 
> 'markdown', 'ext': '.md'}, ... ]
>
>
> When I try to fold sections in a note I encounter a very strange behavior.
>
> Suppose this is the note document and the cursor is located at <cursor> 
> and I am in normal mode (Screen_1):
>
> Title: Some Titel
>
> <cursor># Header
>
> some line
>
> ## Section
>
> section line
>
>
> When I press *zc* to close the folding I receive this error: *E490: No 
> Fold found.*
>
> Then I cycle through the opened tabs by typing *gt* until I am back in 
> the tab of the above note. Now the folding of the *Header* is closed, 
> i.e. the content of the tab is like this (Screen_2):
>
> Title: Some Titel
>
> <cursor># Header [7] 
> --------------------------------------------------------------------------
> ~
> ~
>
>
> Now I can open the folding of the *Header* with *zo* and close it with 
> *zc*. 
> But when I wait a few seconds without hitting any key while the buffer is 
> shown like in *Screen_2* 
> MacVim opens the entire folding of *Header,* i.e. it automatically 
> switches the buffer back to *Screen_1*.
> After that automatic expansion of the folding of *Header* MacVim forgets 
> the folding it has used before.
> Now, when I try to close the folding with *zo* I again receive the error  
> *E490: 
> No Fold found.*
>
> Is this a known issue of MacVim? Does anyone have an idea why this 
> behaviour occurs?
>
> By the way: At work I use gVim (with almost the same settings in my vimrc) 
> under Windows 10 and Ubuntu 16.04.
> In gVim I encounter no such issues when I use fold commanads like *zc* 
> and *zo*.
>
> My MacVim version is: *Custom Version 8.1.2234 (161)*
>
> Ciao
>
> Maral
>

I don't see these two plugins (filetype-pligins?) on my system. I hope 
someone else can help you.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_mac+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_mac/b8e4c728-b187-4f7f-b1c5-4efa8be69c30%40googlegroups.com.

Reply via email to