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

Vimwiki does not recognize filetype on startup #1374

Open
jfab20 opened this issue Oct 23, 2023 · 1 comment
Open

Vimwiki does not recognize filetype on startup #1374

jfab20 opened this issue Oct 23, 2023 · 1 comment

Comments

@jfab20
Copy link

jfab20 commented Oct 23, 2023

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 jfab20 changed the title Vimwiki does not recognize filetype in startup Vimwiki does not recognize filetype on startup Oct 23, 2023
@devbydaniel
Copy link

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 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants