let g:vimwiki_table_mappings=0let g:vimwiki_table_auto_fmt=0let 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'}, ... ]
Title: Some Titel<cursor># Headersome line## Sectionsection line
Title: Some Titel<cursor># Header [7] --------------------------------------------------------------------------~~
Hi,
I tried to analyze under which situation the problem arises. I use these versions of vim
In both environments at work, the issue did not arise.
Then I set up a virtual machine running Ubuntu 16.04. on my MacBook. In the virtual machine, vim is of version 7.4.1689, i.e. the same version as in my Ubuntu environment at work. But although I installed the same plugins in both Ubuntu environments the issue with folding did only arise in the virtual machine on my MacBook. So I checked the versions of the plugins. It turned out that I used older versions of the following plugins in my environments at work:
After I had updated those plugins to the most recent versions in both environments at work the issue with folding also occurred at work in the Ubuntu environment but not in the Windows 10 environment. Hence my conclusion is that vim-markdown and vimwiki are incompatible in these versions of vim:
but compatible in version 8.1.1817. So I guess there was a bug in version 7.4 which was fixed in 8.1 but somehow shows up again in the more recent version of MacVim. Another possibility would be that the recent version of either vim-markdown or vimwiki has some bug. But that's not me to find out.
Ciao
Maral