vimwiki icon indicating copy to clipboard operation
vimwiki copied to clipboard

Vimwiki does not recognize filetype on startup

Open jfab20 opened this issue 1 year ago • 1 comments

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

jfab20 avatar Oct 23 '23 02:10 jfab20

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 

devbydaniel avatar Jan 20 '24 20:01 devbydaniel