vimwiki
vimwiki copied to clipboard
Vimwiki does not recognize filetype on startup
My init.vim
, with markdown syntax
let g:vimwiki_list = [{'path': '~/Documents/wiki/', 'syntax':'markdown', 'ext':'.md'}]
let g:vimwiki_global_ext = 0
autocmd VimEnter * VimwikiIndex
I want to run Vimwiki at startup. After adding a command for doing it in my init.vim
, the markdown file (it also doesn't work in wiki syntax) doesn't load the filetype and thus I get no syntax highlighting. None of the mappings work and vimwiki is just not active.
To reproduce just add autocmd VimEnter * VimwikiIndex
to your vimrc.
Output of VimwikiShowVersion
Version: 2023.05.12
Os: Linux
Vim: 801
Branch: dev
Revision: 5d86b62
Date: 2023-10-16 10:12:32 -0300
Not sure if related, but with my config
set nocompatible
filetype plugin on
let g:vimwiki_list = [{'path': '~/cloud/notes--20240114', 'syntax': 'markdown', 'ext': 'md'}]
let g:vimwiki_global_ext = 0
(no dot before md
)
I also don't get proper syntax highlighting and :set syntax?
returns syntax=vimwiki
Output of VimwikiShowVersion
Version: 2023.05.12
Os: Linux
Vim: 801
Branch: dev
Revision: 0bb1b49
Date: 2023-10-31 13:45:18 -0300