Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use vimwiki filetype only for vimwiki files (not all .md files) #95

nfarrar opened this issue Dec 29, 2014 · 1 comment


Copy link

nfarrar commented Dec 29, 2014

I've just started using vimwiki, and set the base configuration as:

let g:vimwiki_root = $HOME . '/Documents/Wiki'
let g:vimwiki_list = [{'path': $HOME . '/Documents/Wiki',
  \ 'syntax': 'markdown', 'ext': '.md'}]

When I open markdown files not inside that filepath, they are detected as ft=vimwiki rather than markdown. I've looked through the docs, but not seeing an obvious way to control this behavior.

My assumption is that I could do this through the syntax/ext - something like this:

let g:vimwiki_root = $HOME . '/Documents/Wiki'
let g:vimwiki_list = [{'path': $HOME . '/Documents/Wiki',
  \ 'syntax': 'markdown', 'ext': '.vmwd'}]

Would allow vimwiki to use markdown and associate the exten .vmwd with those files, so regular .md files would not be hijacked. However, I'll have to do additional configuration with other applications to make them recognize this extension. Is this the best solution?

Copy link

EinfachToll commented Jan 6, 2015

There is an option g:vimwiki_global_ext for that problem. Set it to 0 to disable the creation of temporary wikis.

jordypotman added a commit to jordypotman/dotfiles that referenced this issue Jan 21, 2017
kaimingguo added a commit to kaimingguo/vimrc that referenced this issue Dec 27, 2019
Add `vimwiki_global_ext` option, ignore all .md files.

reference: vimwiki/vimwiki#95
morgaan added a commit to morgaan/dotfiles that referenced this issue Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants