Mardown files always have vimwiki filetype (vimwiki plugin)

2018-06-20 09:57:27

Here is the relevant content of my .vimrc

let g:vimwiki_global_ext=0

let g:vimwiki_list = [{'path': 'C:\Users\\vimwiki',

\ 'syntax': 'markdown', 'ext': '.md'}]

The plugin mapping ww creates a new file called index.md in C:\Users\\vimwiki as expected. So I suppose path is correct.

My problem is that :set ft? of the index.md file is always set to vimwiki (filetype=vimwiki). I don't know what settings are wrong here?

Note that vimwiki is in /opt instead of /start.

This is the expected behavior of the plugin when you create a file in your vimwiki the filetype is set to vimwiki.

If you don't want files created outside of the wiki directory to have this filetype you can follow this issue and add the following line to your .vimrc:

let g:vimwiki_global_ext = 0

  • This is the expected behavior of the plugin when you create a file in your vimwiki the filetype is set to vimwiki.

    If you don't want files created outside of the wiki directory to have this filetype you can follow this issue and add the following line to your .vimrc:

    let g:vimwiki_global_ext = 0

    2018-06-20 10:45:30